public async Task <bool> DeleteKeyAsync(string i_Key) { try { m_Logger.LogInformation(string.Format(FUNCTION_CONTEXT_FORMAT, "DeleteKey", i_Key)); return(await m_Client.RemoveAsync(i_Key)); } catch (Exception ex) { m_Logger.LogError(string.Format(EXCEPTION_MESSAGE, EngineType, "DeleteKey", LogUtils.GetExceptionDetails(ex))); throw; } }
public override void ReleaseLock(string correlationId, string key) { CheckOpened(correlationId); _client.RemoveAsync(key).Wait(); }
/// <summary> /// Removes a value from the cache by its key. /// </summary> /// <param name="correlationId">(optional) transaction id to trace execution through call chain.</param> /// <param name="key">a unique value key.</param> public override async Task RemoveAsync(string correlationId, string key) { CheckOpened(correlationId); await _client.RemoveAsync(key); }
public async Task <bool> RemoveAsync(string key) { _logger.Debug("Removing item from cache with key {0}", key); return(await _cache.RemoveAsync(key)); }
public async void Remove(string key) { await _client.RemoveAsync(key); }