FileCache AddOrGetExisting Method (String, Object, DateTimeOffset, String)Nemiro.Data.dll
Adds a cache entry into the cache using the specified key and a value and an absolute expiration value.

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

public override Object AddOrGetExisting(
	string key,
	Object value,
	DateTimeOffset absoluteExpiration,
	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 DateTimeOffset
The fixed date and time at which the cache entry will expire.
regionName (Optional)
Type: System String
A named region in the cache to which a cache entry can be added.

Return Value

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