Cache a positive result for token. The entry expiry is the TTL, clamped
down to the token's own exp (RFC 7662) when present, so a cached result
never outlives the token it represents. Expired entries are swept on every
call; when the cap would be exceeded by a new key, the soonest-expiring
entry is evicted first.
Cache a positive result for token. The entry expiry is the TTL, clamped down to the token's own exp (RFC 7662) when present, so a cached result never outlives the token it represents. Expired entries are swept on every call; when the cap would be exceeded by a new key, the soonest-expiring entry is evicted first.