class

ActionController::MCPServer::AuthCache

Inherits Reference < Object

caches successful authentication checks, keyed by a fingerprint of the forwarded credentials, so the application isn't consulted on every message

Constants

MAX_ENTRIES = 10000

Class methods

fingerprint(request : HTTP::Request) : String | Nil

returns the fingerprint of the credentials in the request, nil if there are none

Source

Instance methods

clear
Source
delete(fingerprint : String) : Nil
Source
store(fingerprint : String, ttl : Time::Span) : Nil
Source
valid?(fingerprint : String) : Bool
Source