PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCaching­BackendContains­Item
Open sandboxFocus

CachingBackend.ContainsItem Method

ContainsItem(String)

Determines whether the cache contains an item of a given key.

Declaration
public bool ContainsItem([Required] string key)
Parameters
Type Name Description
System.String key

The key of the cache item.

Returns
Type Description
Boolean

true if the cache contains an item whose key is key, otherwise false.