Beispiel #1
0
        public void StringSet()
        {
            var isTrue = _helper.StringSet("StringSet", "StringSet");
            var str    = _helper.GetString("StringSet");

            Assert.True(isTrue);
            Assert.Equal("StringSet", str);
        }
        public async Task <IActionResult> GetRedis(string key)
        {
            string result = await service.GetString(key);

            return(Success(result));
        }
 public void RedisTest()
 {
     var customerList = CustomerList();
     var isTrue       = _redisHelper.StringSet("StringSetList", customerList);
     var list         = _redisHelper.GetString <List <Customer> >("StringSetList");
 }