Sha256: d7f182f109d96ddb0a5bd55a1b89dbbe8afd2e6480cab71d831c68dbdbcbf399
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
# -*- encoding : utf-8 -*- require 'active_record/test_helper' class ActiveRecord::SecondLevelCacheTest < Minitest::Test def setup @user = User.create :name => 'csdn', :email => 'test@csdn.com' end def test_should_get_cache_key assert_equal "slc/user/#{@user.id}/#{User::CacheVersion}", @user.second_level_cache_key end def test_should_write_and_read_cache @user.write_second_level_cache refute_nil User.read_second_level_cache(@user.id) @user.expire_second_level_cache assert_nil User.read_second_level_cache(@user.id) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
second_level_cache-2.1.0.rc2 | test/active_record/second_level_cache_test.rb |
second_level_cache-2.1.0.rc1 | test/active_record/second_level_cache_test.rb |