Interface ITokenCache
A store for the tokens of the current user.
public interface ITokenCache
Methods
DeleteItem(string)
Delete a token based on its unique key.
void DeleteItem(string key)
Parameters
keystringThe unique key of the token.
Get<T>(string)
Gets a value.
T? Get<T>(string key)
Parameters
keystringThe unique key.
Returns
- T
The value, or the default of
Twhen there is none.
Type Parameters
TThe type of the value.
Put<T>(string, T)
Adds or replaces a value.
void Put<T>(string key, T data)
Parameters
keystringThe unique key.
dataTThe value to store. A null value is ignored by some implementations.
Type Parameters
TThe type of the value.