示例#1
0
 public static bool KeyExists(string key) => CacheDb.KeyExists(key);
示例#2
0
        public static T Get <T>(string key) where T : class
        {
            var exists = CacheDb.KeyExists(key);

            return(exists ? CacheDb.StringGet(key).ToString().Deserialize <T>() : null);
        }