public RedisValue ToRedis <TValue>(CacheItem <TValue> cacheItem) { return(To(cacheItem)); }
internal void RemoveItem(String cacheName, String key) { var id = CacheItem <object> .GetId(cacheName, key); client.Database.KeyDelete(id, CommandFlags.None); }
internal Task RemoveItemAsync(String cacheName, String key) { var id = CacheItem <object> .GetId(cacheName, key); return(client.Database.KeyDeleteAsync(id, CommandFlags.None)); }
internal void ExpireItemIn <TValue>(String cacheName, String key, TimeSpan timeSpan) { var id = CacheItem <TValue> .GetId(cacheName, key); ExpireById(id, timeSpan); }