Open sandboxFocus

Method GetItem

GetItem(string, bool)

Gets a cache item given its key.

Declaration
public CacheValue GetItem(string key, bool includeDependencies = true)
Parameters
Type Name Description
string key

The key of the cache item.

bool 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 the cache with the given key.