Beispiel #1
0
        internal void ExpireItemIn <TValue>(String cacheName, String key, TimeSpan timeSpan)
        {
            var id = CacheItem <TValue> .GetId(cacheName, key);

            ExpireById(id, timeSpan);
        }
Beispiel #2
0
        internal void RemoveItem(String cacheName, String key)
        {
            var id = CacheItem <object> .GetId(cacheName, key);

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

            return(client.Database.KeyDeleteAsync(id, CommandFlags.FireAndForget));
        }