예제 #1
0
 public void TestUpdate() {
     const string key2 = "A ";
     _cache.Add( _key, _user, 10 );
     var user = new User {DoubleValue = 888};
     _cache.Update( null, user,10 );
     _cache.Update( key2, user,10 );
     Assert.AreEqual( 888, _cache.Get<User>( _key ).DoubleValue );
 }
예제 #2
0
 public void TestInit() {
     _cache = new LocalCacheProvider();
     _user = new User { DoubleValue = 999 };
     _key = "a";
 }
예제 #3
0
 public void TestInit() {
     _user = new User();
 }