Adds a cache entry into the cache.
Namespace: Nemiro.Data.CachingAssembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax
Parameters
- key
- Type: System String
A unique identifier for the cache entry.
- value
- Type: System Object
The object to insert.
- policy
- 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.
Return Value
Type: ObjectIf a matching cache entry already exists, a cache entry; otherwise, null (Nothing).
See Also