Example #1
0
 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;
     }
 }
Example #2
0
        public override void ReleaseLock(string correlationId, string key)
        {
            CheckOpened(correlationId);

            _client.RemoveAsync(key).Wait();
        }
Example #3
0
        /// <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);
        }
Example #4
0
        public async Task <bool> RemoveAsync(string key)
        {
            _logger.Debug("Removing item from cache with key {0}", key);

            return(await _cache.RemoveAsync(key));
        }
Example #5
0
 public async void Remove(string key)
 {
     await _client.RemoveAsync(key);
 }