Returns the number of stored entries (including any not yet lazily evicted). Intended for tests and diagnostics.
Returns the record for key, or null if missing or expired.
Stores record under key, overwriting any existing entry.
Removes the entry for key. No-op if key is absent.
Removes all entries.
In-memory TokenStore implementation.
Remarks
Expired entries are evicted lazily on read. Records are shallow-copied on
setandgetso caller mutations do not leak into stored state.