Click or drag to resize

ICacheApiSetT Method (String, T)

Inserts a cache entry into the cache by using a key and a value with default expiration time which is 15 minutes.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
void Set<T>(
	string key,
	T value
)

Parameters

key
Type: SystemString
The key.
value
Type: T
The value.

Type Parameters

T
Type of the cached object.
Remarks
If the specified entry does not exist, it is created. If the specified entry exists, it is updated.
Examples
var cacheApi = ctx.Use<ICacheApi>();
cacheApi.Set("cache_key", "cache_value");
See Also