public ulong GetNextSequenceValue(Key key)
 {
     _logger.LogStoreCall("GetNextSequenceValue", key);
     try
     {
         return(_store.GetNextSequenceValue(key));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex);
         throw;
     }
 }
Exemple #2
0
        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()));
        }
Exemple #3
0
 public ulong GetNextSequenceValue(Key key)
 {
     return(_store.GetNextSequenceValue(_GetTransformedKey(key)));
 }
 public ulong GetNextSequenceValue(Key key)
 {
     return(_store.GetNextSequenceValue(key));
 }
Exemple #5
0
        public void Enqueue(T item)
        {
            var endIdx = _store.GetNextSequenceValue(_idxEndKey);

            _store.Set(GetKeyFromIdx(endIdx), item);
        }