Method | Description | |
---|---|---|
CacheManage ( IMemoryCache memoryCache ) : Microsoft.Extensions.Caching.Memory | ||
Get ( string key ) : T | ||
GetOrCreate ( string key, Func factory ) : T | ||
Remove ( string key ) : void | ||
Set ( string key, object value, int seconds = int.MaxValue ) : void |
public CacheManage ( IMemoryCache memoryCache ) : Microsoft.Extensions.Caching.Memory | ||
memoryCache | IMemoryCache | |
return | Microsoft.Extensions.Caching.Memory |
public GetOrCreate ( string key, Func factory ) : T | ||
key | string | |
factory | Func | |
return | T |
public Set ( string key, object value, int seconds = int.MaxValue ) : void | ||
key | string | |
value | object | |
seconds | int | |
return | void |