Click or drag to resize

RedisAdhocCacheAddT Method

Add the specified object to the cache

Namespace:  SanteDB.Caching.Redis
Assembly:  SanteDB.Caching.Redis (in SanteDB.Caching.Redis.dll) Version: 3.0.481-alpha
Syntax
public void Add<T>(
	string key,
	T value,
	TimeSpan? timeout = null
)

Parameters

key
Type: SystemString
The key to assign the cache
value
Type: T
The value to store in the cache
timeout (Optional)
Type: SystemNullableTimeSpan
The timeout for the object validity

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:SanteDB.Caching.Redis.RedisAdhocCache.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]

Implements

IAdhocCacheServiceAddT(String, T, NullableTimeSpan)
See Also