Class DefaultReplayCache
- Namespace
- Duende.IdentityServer.Services
- Assembly
- Duende.IdentityServer.dll
Default implementation of the replay cache using IDistributedCache
public class DefaultReplayCache : IReplayCache
- Inheritance
-
DefaultReplayCache
- Implements
- Inherited Members
Constructors
DefaultReplayCache(IDistributedCache)
ctor
public DefaultReplayCache(IDistributedCache cache)
Parameters
cache
IDistributedCache
Methods
AddAsync(string, string, DateTimeOffset)
public Task AddAsync(string purpose, string handle, DateTimeOffset expiration)
Parameters
purpose
stringhandle
stringexpiration
DateTimeOffset
Returns
ExistsAsync(string, string)
public Task<bool> ExistsAsync(string purpose, string handle)