Table of Contents

ICacheEnumerable<TKey> Interface

Definition

Namespace
Cuemon.Runtime.Caching
Assemblies
Cuemon.Runtime.Caching.dll
Source
src/Cuemon.Runtime.Caching/ICacheEnumerable.cs

An interface that is used to provide cache implementations for an application.

public interface ICacheEnumerable<TKey> : IEnumerable<KeyValuePair<TKey, CacheEntry>>, IEnumerable

Type Parameters

TKey

The 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 ns contained in the cache.

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 ns contained in the cache.

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 key from the cache.

TryGet(string, string, out object)

Attempts to get the value associated with the specified key and ns from the cache.

TryGetCacheEntry(string, out CacheEntry)

Attempts to get the CacheEntry associated with the specified key from the cache.

TryGetCacheEntry(string, string, out CacheEntry)

Attempts to get the CacheEntry associated with the specified key and ns from the cache.