Table of Contents

GetCacheEntry Method

Definition

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

GetCacheEntry(string, string)

Returns an entry from the cache as a CacheEntry instance.

public CacheEntry GetCacheEntry(string key, string ns = null)

Parameters

key string

The unique identifier for the cache entry.

ns string

The optional namespace that provides a scope to the cache.

Returns

CacheEntry

A reference to the CacheEntry that is identified by key, if the entry exists; otherwise, null.

Exceptions

ArgumentNullException

key cannot be null.