PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​BackendsMemory­Cache­BackendGet­Item­Core
Open sandboxFocus

MemoryCacheBackend.GetItemCore Method

GetItemCore(String, Boolean)

Gets a cache item given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.

Declaration
protected override CacheValue GetItemCore(string key, bool includeDependencies)
Parameters
Type Name Description
String key

The cache item.

System.Boolean includeDependencies

true if the Dependencies properties of the resulting CacheValue should be populated, otherwise false.

Returns
Type Description
CacheValue

A CacheValue, or null if there is no item in cache of the given key.

Overrides
CachingBackend.GetItemCore(String, Boolean)