PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCaching­BackendGet­Item
Open sandboxFocus

CachingBackend.GetItem Method

GetItem(String, Boolean)

Gets a cache item given its key.

Declaration
public CacheValue GetItem([Required] string key, bool includeDependencies = true)
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.