Table of Contents

Set Method

Definition

Namespace
Cuemon.Runtime.Caching
Assemblies
Cuemon.Runtime.Caching.dll
Source
src/Cuemon.Runtime.Caching/ICacheEnumerable.cs

Set(string, object, CacheInvalidation, string)

Inserts a cache entry into the cache.

void Set(string key, object value, CacheInvalidation invalidation, string ns = null)

Parameters

key string

The unique identifier of the cache.

value object

The stored value of the cache.

invalidation CacheInvalidation

The object that contains expiration details for a specific cache entry.

ns string

The optional namespace that provides a scope to the cache.