public void Delete(Key key) { _logger.LogStoreCall("Delete", key); try { _store.Delete(key); } catch (Exception ex) { _logger.LogError(ex); } }
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); }
public void Delete(Key key) { _store.Delete(_GetTransformedKey(key)); }
public void Delete(Key key) { _writeActions.Enqueue(() => _store.Delete(key)); }