public void PropertyTest() { var hasher = new CacheKeyHasher { ApiName = "Api", UserName = "******", Operation = "AddItem", OriginalKey = "1" }; Assert.AreEqual("Api|theofilis|AddItem|c4ca4238a0b923820dcc509a6f75849b", hasher.GetHashedKey()); }
public Evicter(uint shardId, IPersistentStore store, UsageTracker usage, CacheKeyHasher hasher, IClock clock, PersistentCacheOptions options, CancellationTokenSource shutdownTokenSource) { this.shardId = shardId; this.store = store; this.usage = usage; this.clock = clock; this.options = options; this.shutdownTokenSource = shutdownTokenSource; this.hasher = hasher; sizeTracker = new SizeTracker(shardId, store, clock, options); }