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