Table of Contents

TryGetCacheEntry Method

Definition

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

TryGetCacheEntry(string, out CacheEntry)

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

bool TryGetCacheEntry(string key, out CacheEntry cacheEntry)

Parameters

key string

The unique identifier for the cache entry.

cacheEntry CacheEntry

When this method returns, contains the cache entry associated with the specified key, or null if the operation failed.

Returns

bool

true if the cacheEntry was found in the cache; otherwise, false.

TryGetCacheEntry(string, string, out CacheEntry)

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

bool TryGetCacheEntry(string key, string ns, out CacheEntry cacheEntry)

Parameters

key string

The unique identifier for the cache entry.

ns string

The optional namespace that provides a scope to the cache.

cacheEntry CacheEntry

When this method returns, contains the cache entry associated with the specified key and ns, or null if the operation failed.

Returns

bool

true if the cacheEntry was found in the cache; otherwise, false.