示例#1
0
        public static T Get <T>(string key) where T : class
        {
            var client = new RedisClient <T>();

            return(client.KGet(key));
        }
示例#2
0
        public static bool Set <T>(string key, T value, TimeSpan expireIn) where T : class
        {
            var client = new RedisClient <T>();

            return(client.KSet(key, value, expireIn));
        }