Interface IServiceCacheStorage<TKey, TCachedObject>
- Namespace
- Dynamicweb.Caching
- Assembly
- Dynamicweb.Core.dll
Implements cache storage wrapper designed to isolate the cache logic from the service it is used in.
public interface IServiceCacheStorage<TKey, TCachedObject> where TKey : IEquatable<TKey>
Type Parameters
TKey
CacheKey unique accross cacheobjects in the storage
TCachedObject
Object cached by the storage
Properties
Cache
The service cache.
ServiceCache<TKey, TCachedObject> Cache { get; }
Property Value
- ServiceCache<TKey, TCachedObject>
Info
Information about the object cache
CacheInformation Info { get; }
Property Value
- See Also
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
void ClearCache()
- See Also
ClearCache(IEnumerable<TKey>)
Resets the specified keys to the default value for objects stored in the object cache
void ClearCache(IEnumerable<TKey> keys)
Parameters
keys
IEnumerable<TKey>Keys to reset
- See Also
ClearCache(TKey)
Resets the specified key to the default value for objects stored in the object cache
void ClearCache(TKey key)
Parameters
key
TKeyKey to reset
- See Also
SetCacheType<TObjectCache>()
Changes the storage container
void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<TKey, TCachedObject>
Type Parameters
TObjectCache
- See Also