Contains Method
Definition
- Assemblies
- Cuemon.Runtime.Caching.dll
Contains(string, string)
Determines whether a cache entry exists in the cache.
public bool Contains(string key, string ns = null)
Parameters
keystringThe unique identifier for the cache entry.
nsstringThe optional namespace that provides a scope to the cache.
Returns
- bool
trueif the cache contains a cache entry whose key matcheskey; otherwise,false.
Exceptions
- ArgumentNullException
keycannot be null.