Example #1
0
 public ICacheable FindAndTouch(T key)
 {
     lock (syncRoot)
     {
         ICacheable c = this.Find(key);
         if (c != null)
         {
             c.Touch();
         }
         return(c);
     }
 }
Example #2
0
 public void Touch(ICacheable cacheable)
 {
     cacheable.Touch();
 }