method
Store.PruneExpiredAuth
func (backend *Store) PruneExpiredAuth(
ctx context.Context,
limit int,
) (store.AuthPruneResult, error)PruneExpiredAuth removes at most limit records from each expiring auth family. BEGIN IMMEDIATE serializes candidates across processes so two maintenance workers cannot count or delete the same record.
Related types
StoreA SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.
AuthPruneResultExpired session and API-key counts removed by one bounded cycle.