Exemple #1
0
 public RedisValue ToRedis <TValue>(CacheItem <TValue> cacheItem)
 {
     return(To(cacheItem));
 }
Exemple #2
0
        internal void RemoveItem(String cacheName, String key)
        {
            var id = CacheItem <object> .GetId(cacheName, key);

            client.Database.KeyDelete(id, CommandFlags.None);
        }
Exemple #3
0
        internal Task RemoveItemAsync(String cacheName, String key)
        {
            var id = CacheItem <object> .GetId(cacheName, key);

            return(client.Database.KeyDeleteAsync(id, CommandFlags.None));
        }
Exemple #4
0
        internal void ExpireItemIn <TValue>(String cacheName, String key, TimeSpan timeSpan)
        {
            var id = CacheItem <TValue> .GetId(cacheName, key);

            ExpireById(id, timeSpan);
        }