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

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

public override Object AddOrGetExisting(
	string key,
	Object value,
	CacheItemPolicy policy,
	string regionName = null


Type: System String
A unique identifier for the cache entry to add or get.
Type: System Object
The data for the cache entry.
Type: System.Runtime.Caching CacheItemPolicy
An object that contains eviction details for the cache entry. This object provides more options for eviction than a simple absolute expiration.
regionName (Optional)
Type: System String
A named region in the cache to which a cache entry can be added. Default: null (Nothing).

Return Value

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