/// <inheritdoc />
 internal override void Persist(OperationContext context, ShortHash hash, ContentLocationEntry entry)
 {
     // consider merging the values. Right now we always reconstruct the entry.
     _map.AddOrUpdate(hash, key => entry, (key, old) => entry);
 }
예제 #2
0
 public void TestGenerateKey()
 {
     Assert.AreEqual(16, ShortHash.GenerateKey().Length);
 }
 /// <inheritdoc />
 protected override bool TryGetEntryCoreFromStorage(OperationContext context, ShortHash hash, out ContentLocationEntry entry)
 {
     entry = GetContentLocationEntry(hash);
     return(entry != null && !entry.IsMissing);
 }