public void RetrievePreventsEvict() { _cache.Store("key1", 0, new byte[] { 0, 1, 2, 3, 4 }, DateTime.MaxValue); _cache.Store("key2", 0, new byte[] { 0, 1, 2, 3, 4 }, DateTime.MaxValue); _cache.Retrieve(new[] { "key1" }); _cache.Store("key3", 0, new byte[] { 0, 1, 2, 3, 4 }, DateTime.MaxValue); var keys = _cache.Keys.ToArray(); Assert.AreEqual(2, keys.Length); Assert.IsTrue(keys.Contains("key1")); Assert.IsTrue(keys.Contains("key3")); }