Пример #1
0
 public static bool Set <T>(string key, T value, DateTime expireTime) where T : class => CacheDb.StringSet(key, value.Serialize(), expireTime - DateTime.Now);
Пример #2
0
 public static bool Set <T>(string key, T value) where T : class => CacheDb.StringSet(key, value.Serialize(), DefaultExpiry);