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.

Source adapters/sqlite/auth.go:540

@param ctx
The ctx value.
@param limit
The limit value.
@returns
The declared result.

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.

  • AuthPruneResult

    Expired session and API-key counts removed by one bounded cycle.