interface
AuthMaintenanceStore
Bounded pruning of expired auth state.
Properties
| Property | Type | Description |
|---|---|---|
PruneExpiredAuth | func(context.Context, | The PruneExpiredAuth value. |
How it works
The implementation uses its authoritative clock, removes at most limit sessions and limit API keys, and must not double-count across concurrent callers. The batch is capped by MaxAuthPruneBatch (500).
Full signature
type AuthMaintenanceStore interface {
PruneExpiredAuth(context.Context, int) (AuthPruneResult, error)
}