예제 #1
0
        public async Task AddAndExistTest()
        {
            _cacheProvider.Initialize("test", _enabledSettings);
            const string key         = "TestKey";
            const string region      = "FirstRegion";
            const int    cacheObject = 111;

            Assert.IsTrue(await _cacheProvider.Add(key, cacheObject, region, new CacheOptions()));
            var item = await _cacheProvider.Exist(key, region);

            Assert.IsTrue(item);
        }