public static T Get <T>(string key) where T : class { var client = new RedisClient <T>(); return(client.KGet(key)); }
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)); }