Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV is a simple in-memory key-value store with TTL support. It is only safe for single-process deployments.
type SIWSCache ¶
type SIWSCache struct {
// contains filtered or unexported fields
}
SIWSCache stores pending SIWS challenges in memory. This is only suitable for single-node deployments or local development.
func NewSIWSCache ¶
NewSIWSCache creates a new in-memory SIWS challenge cache.
type StateCache ¶
type StateCache struct {
// contains filtered or unexported fields
}
StateCache is an in-memory implementation of oidckit.StateCache with TTL.
func NewStateCache ¶
func NewStateCache(ttl time.Duration) *StateCache
NewStateCache creates a new in-memory state cache with the given TTL. If ttl <= 0, a default of 10 minutes is used. Starts a background goroutine to clean up expired entries every minute.
func (*StateCache) Close ¶
func (s *StateCache) Close() error
Close stops the background cleanup goroutine. Should be called when the cache is no longer needed.