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
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 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 |
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