public ulong GetNextSequenceValue(Key key) { _logger.LogStoreCall("GetNextSequenceValue", key); try { return(_store.GetNextSequenceValue(key)); } catch (Exception ex) { _logger.LogError(ex); throw; } }
public Key GenerateKey(IKVStore store) { var sequenceValue = store.GetNextSequenceValue(string.Format("{0}:i", ConceptualTableKeyPrefix)); //todo : replace with customisable logic return(string.Format("{0}:{1}", ConceptualTableKeyPrefix, sequenceValue.ToString())); }
public ulong GetNextSequenceValue(Key key) { return(_store.GetNextSequenceValue(_GetTransformedKey(key))); }
public ulong GetNextSequenceValue(Key key) { return(_store.GetNextSequenceValue(key)); }
public void Enqueue(T item) { var endIdx = _store.GetNextSequenceValue(_idxEndKey); _store.Set(GetKeyFromIdx(endIdx), item); }