Class CoreCache
Assembly: LemonEdge.Database.Connector.dll
Syntax
Constructors
CoreCache(IOptions<CacheSettings>)
Declaration
public CoreCache(IOptions<CacheSettings> settings)
Parameters
Properties
Instance
Declaration
public static CoreCache Instance { get; set; }
Property Value
Methods
ClearIncrementAsync(string)
Declaration
public Task ClearIncrementAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
ClearItemAsync(string)
Declaration
public Task ClearItemAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
ClearItemAsync(string, string)
Declaration
public Task ClearItemAsync(string key, string hashField)
Parameters
Returns
DecrementAsync(string)
Declaration
public Task<long> DecrementAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
DoesItemExist(string, string)
Declaration
public Task<bool> DoesItemExist(string key, string hashField)
Parameters
Returns
GetItemAsync<T>(string)
Declaration
public Task<T> GetItemAsync<T>(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type Parameters
GetItemAsync<T>(string, string)
Declaration
public Task<T> GetItemAsync<T>(string key, string hashField)
Parameters
Returns
Type Parameters
GetItemAsync<T>(string, string, Func<Task<T>>)
Declaration
public Task<T> GetItemAsync<T>(string key, string hashField, Func<Task<T>> creator)
Parameters
Returns
Type Parameters
IncrementAsync(string)
Declaration
public Task<long> IncrementAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
InitCache()
Declaration
PutItemAsync<T>(string, string, T)
Declaration
public Task PutItemAsync<T>(string key, string hashField, T item)
Parameters
Returns
Type Parameters
PutItemAsync<T>(string, T)
Declaration
public Task<T> PutItemAsync<T>(string key, T item)
Parameters
Type |
Name |
Description |
string |
key |
|
T |
item |
|
Returns
Type Parameters
Extension Methods