Beispiel #1
0
        public void TestGetResourceWithoutAwaitingIndex()
        {
            ICacheKey key = PutOneThingInCache();

            // A new cache object in the same directory. Equivalent to a process restart.
            // Index may not yet updated.
            DiskStorageCache cache2 = CreateDiskCache(_storage, false);

            Assert.IsNotNull(cache2.GetResource(key));
        }