Example #1
0
        public async Task DecrGetRedisAsyncTest()
        {
            var keyName = KeyName();
            await _redisService.RemoveAsync(keyName);

            var result = await _redisService.DecrementStringAsync(keyName, 1L);

            await _redisService.RemoveAsync(keyName);

            Assert.Equal(-1, result);
        }