Метод | Описание | |
---|---|---|
Add ( string key, |
Add a new state to the cache
|
|
Add ( string key, |
Add a new state to the cache and set a custom cache item policy
|
|
AuthenticationStateCache ( ) : System |
Create an authentication state cache
|
|
TryGet ( string key, |
Try to get a state by its key
|
|
TryRemove ( string key ) : void |
Remove a key
|
Метод | Описание | |
---|---|---|
GetCacheEntryOptions ( int minutes ) : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions |
Gets a cache item policy.
|
public Add ( string key, |
||
key | string | |
state | ||
Результат | void |
public Add ( string key, |
||
key | string | |
state | ||
options | Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions | |
Результат | void |
public AuthenticationStateCache ( ) : System | ||
Результат | System |
public TryGet ( string key, |
||
key | string | |
state | ||
Результат | bool |