예제 #1
0
 public void Delete(Key key)
 {
     _logger.LogStoreCall("Delete", key);
     try
     {
         _store.Delete(key);
     }
     catch (Exception ex)
     {
         _logger.LogError(ex);
     }
 }
예제 #2
0
        public T Dequeue()
        {
            var    startIdx = _store.GetNextSequenceValue(_idxStartKey);
            string itemKey  = GetKeyFromIdx(startIdx);
            var    item     = _store.Get <T>(itemKey);

            if (item == null)
            {
                _store.GetNextSequenceValue(_idxEndKey);
            }
            else
            {
                _store.Delete(itemKey);
            }

            return(item);
        }
예제 #3
0
 public void Delete(Key key)
 {
     _store.Delete(_GetTransformedKey(key));
 }
 public void Delete(Key key)
 {
     _writeActions.Enqueue(() => _store.Delete(key));
 }