Open sandboxFocus

Method GetItem

GetItem(string, bool)

Gets a cache item given its key.

Declaration
public CacheItem? GetItem(string key, bool includeDependencies = false)
Parameters
Type Name Description
string key

The cache item.

bool includeDependencies

true if the Dependencies property of the resulting CacheItem must be populated. When false, a backend may populate it anyway, so the caller must not assume that it is empty.

Returns
Type Description
CacheItem

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