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); } }
public override void Execute(IMemcachedProvider cacheProvider) { _result = cacheProvider.Delete(_key, 0); }
public override void Execute(IMemcachedProvider cacheProvider) { _result = cacheProvider.Delete(_key,0); }