Class RevokedSidsCache

Assembly: redb.Identity.Web.dll

Thread-safe in-memory implementation of . Entries
are pruned opportunistically on every call so memory stays
bounded by the active retention window even on hosts that receive no traffic.

public sealed class RevokedSidsCache : IRevokedSidsCache

Inheritance

Object→RevokedSidsCache

Implements

Properties

Cursor

Cursor of the most recent entry observed; null until the first successful poll.

public DateTimeOffset? Cursor { get; }

Methods

Apply(IEnumerable<RevokedSidEntry>)

Merge a batch of revocations into the cache (idempotent).

public void Apply(IEnumerable<RevokedSidEntry> entries)

IsRevoked(string?, string?)

True iff the supplied sid or sub is

public bool IsRevoked(string? sid, string? sub)

SetCursor(DateTimeOffset)

Update the cursor for the next poll.

public void SetCursor(DateTimeOffset cursor)

Constructors