ICacheEnumerable<TKey> Interface
Definition
- Assemblies
- Cuemon.Runtime.Caching.dll
An interface that is used to provide cache implementations for an application.
public interface ICacheEnumerable<TKey> : IEnumerable<KeyValuePair<TKey, CacheEntry>>, IEnumerable
Type Parameters
TKeyThe type of the key in the cache.
- Inherited Members
Properties
| Name | Description |
|---|---|
| this[string, string] | Gets or sets a value in the cache by using the default indexer property for an instance of the SlimMemoryCache class. |
| KeyProvider | Gets the function delegate that is responsible for providing a unique identifier for the cache entry. |
Methods
| Name | Description |
|---|---|
| Add(CacheEntry, CacheInvalidation) | Inserts a cache entry into the cache as a CacheEntry instance, and adds details about how the entry should be evicted. |
| Contains(string, string) | Determines whether a cache entry exists in the cache. |
| Count(string) | Gets the number of entries associated with the |
| Get(string, string) | Returns an entry from the cache. |
| GetCacheEntry(string, string) | Returns an entry from the cache as a CacheEntry instance. |
| Remove(string, string) | Removes a cache entry from the cache. |
| RemoveAll(string) | Removes all entries associated with the |
| Set(string, object, CacheInvalidation, string) | Inserts a cache entry into the cache. |
| TryGet(string, out object) | Attempts to get the value associated with the specified |
| TryGet(string, string, out object) | Attempts to get the value associated with the specified |
| TryGetCacheEntry(string, out CacheEntry) | Attempts to get the CacheEntry associated with the specified |
| TryGetCacheEntry(string, string, out CacheEntry) | Attempts to get the CacheEntry associated with the specified |