Beispiel #1
0
 private Hash CreateHash(StorageKey key)
 {
     return(Hash.FromBytes(key.keyData));
 }
Beispiel #2
0
        public override bool Has(StorageKey key)
        {
            var hash = CreateHash(key);

            return(_disk.ContainsKey(hash));
        }
 public abstract void Delete(StorageKey key);
 public abstract void Put(StorageKey key, byte[] value);
 public abstract byte[] Get(StorageKey key);
 public abstract bool Has(StorageKey key);
Beispiel #7
0
 public override void Delete(StorageKey key)
 {
     Put(key, null);
 }