This service is available via Telligent.Evolution.Extensibility.Caching.Version1.CacheService
and is defined in Telligent.Evolution.Platform.dll
Methods
Object Get(string key, CacheScope scope);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
scope | CacheScope | Scope | Required |
Return Type
Object
T Get<T>(string key, Func<T> load, CacheScope scope, CacheOptions options = null);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
load | Func<T> | Load | Required | ||
scope | CacheScope | Scope | Required | ||
options | CacheOptions | Options | Optional |
Return Type
T
void Put(string key, Object value, CacheScope scope);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
value | Object | Value | Required | ||
scope | CacheScope | Scope | Required |
void Put(string key, Object value, CacheScope scope, string[] tags);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
value | Object | Value | Required | ||
scope | CacheScope | Scope | Required | ||
tags | string[] | Tags | Required |
void Put(string key, Object value, CacheScope scope, TimeSpan timeout);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
value | Object | Value | Required | ||
scope | CacheScope | Scope | Required | ||
timeout | TimeSpan | Timeout | Required |
void Put(string key, Object value, CacheScope scope, string[] tags, TimeSpan timeout);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
value | Object | Value | Required | ||
scope | CacheScope | Scope | Required | ||
tags | string[] | Tags | Required | ||
timeout | TimeSpan | Timeout | Required |
void Put(string key, Object value, CacheScope scope, CacheOptions options = null);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
value | Object | Value | Required | ||
scope | CacheScope | Scope | Required | ||
options | CacheOptions | Options | Optional |
void Remove(string key, CacheScope scope);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
scope | CacheScope | Scope | Required |
void RemoveByTags(string[] tags, CacheScope scope);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
tags | string[] | Tags | Required | ||
scope | CacheScope | Scope | Required |
void RemoveByTags(string[] tags);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
tags | string[] | Tags | Required |
bool TryGet<T>(string key, CacheScope scope, out ref T value);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
key | string | Key | Required | ||
scope | CacheScope | Scope | Required | ||
value | ref T | Value | Required |
Return Type
bool