Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
GetCacheEntryOptions ( int minutes ) : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions |
Gets a cache item policy.
|
public Add ( string key, |
||
key | string | |
state | ||
return | void |
public Add ( string key, |
||
key | string | |
state | ||
options | Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions | |
return | void |
public TryGet ( string key, |
||
key | string | |
state | ||
return | bool |