Пример #1
0
 public T Get <T>(string key)
 {
     return(SerializerHelper.DeserializeToObject <T>(instance.GetDatabase().StringGet(key)));
 }
Пример #2
0
 public void Set(string key, object value, DateTime expired)
 {
     instance.GetDatabase().StringSet(key, SerializerHelper.SerializeToString(value));
     instance.GetDatabase().KeyExpire(key, expired);
 }
Пример #3
0
 public void Set(string key, object value, DateTime expired)
 {
     client.Set(key, SerializerHelper.SerializeToString(value), expired);
 }
Пример #4
0
 public void Set(string key, object value)
 {
     instance.GetDatabase().StringSet(key, SerializerHelper.SerializeToString(value));
 }
Пример #5
0
 public void Set(string key, object value)
 {
     client.Set(key, SerializerHelper.SerializeToString(value));
 }