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

            return(client.KGet(key));
        }
Beispiel #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));
        }