예제 #1
0
 public virtual void Set(string key, object value, int minutes, bool isAbsoluteExpiration, Action <string, object, string> onRemove)
 {
     Caching.Set(key, value, minutes, isAbsoluteExpiration, (k, v, reason) =>
     {
         if (onRemove != null)
         {
             onRemove(k, v, reason.ToString());
         }
     });
 }
예제 #2
0
 public void Set(string name, object value)
 {
     Caching.Set(name, value);
 }