예제 #1
0
 private bool delete(string key, bool keyIsChecked, uint hash, int time)
 {
     if (!keyIsChecked)
     {
         checkKey(key);
     }
     if (memcachedProvider == null)
     {
         ConnectionError();
         return(false);
     }
     try
     {
         OperationResult opResult = memcachedProvider.Delete(key, 0);
         if (opResult.ReturnResult == Result.SUCCESS)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception e)
     {
         logger.Error("SERVER_ERROR", e);
         return(false);
     }
 }
예제 #2
0
 public override void Execute(IMemcachedProvider cacheProvider)
 {
     _result = cacheProvider.Delete(_key, 0);
 }
예제 #3
0
 public override void Execute(IMemcachedProvider cacheProvider)
 {
     _result = cacheProvider.Delete(_key,0);
 }