FileCache AddOrGetExisting Method (CacheItem, CacheItemPolicy)Nemiro.Data.dll
Inserts a cache entry into the cache.

Namespace: Nemiro.Data.Caching
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax

public override CacheItem AddOrGetExisting(
	CacheItem value,
	CacheItemPolicy policy
)

Parameters

value
Type: System.Runtime.Caching CacheItem
The data for the cache entry.
policy
Type: System.Runtime.Caching CacheItemPolicy
An object that contains eviction details for the cache entry.

Return Value

Type: CacheItem
If a matching cache entry already exists, a cache entry; otherwise, null (Nothing).
See Also