Beispiel #1
0
 public override bool Set(string key, object value, double cacheMinutes, string fileName)
 {
     if (string.IsNullOrEmpty(key))
     {
         return(false);
     }
     if (value == null)
     {
         return(Remove(key));
     }
     return(client.Set(key, value, DateTime.Now.AddMinutes(cacheMinutes)));
 }
Beispiel #2
0
 public override bool Set(string key, object value, double cacheMinutes, string fileName)
 {
     return(client.Set(key, value, DateTime.Now.AddMinutes(cacheMinutes)));
 }
Beispiel #3
0
 public override void Set(string key, object value)
 {
     client.Set(key, value, DateTime.Now.AddMinutes(AppConfig.Cache.DefaultCacheTime));
 }