Interface IIDCache
- Namespace
- ComponentSpace.Saml2.Cache
- Assembly
- ComponentSpace.Saml2.dll
The ID cache manages IDs.
public interface IIDCache
Methods
AddAsync(string, DateTime)
Adds the ID with an associated expiration time to the cache.
Task<bool> AddAsync(string id, DateTime expirationDateTime)
Parameters
Returns
- Task<bool>
A task that represents the add operation and returns
trueif the ID already exists in the cache; otherwisefalse.
Exceptions
- SamlEnvironmentException
Thrown if the ID cannot be added to the cache.
RemoveAsync(string)
Removes the ID from the cache.
Task RemoveAsync(string id)
Parameters
idstringThe ID.
Returns
- Task
A task that represents the remove operation.
Exceptions
- SamlEnvironmentException
Thrown if the ID cannot be removed from the cache.