method

Store.PruneExpiredAuth

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.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
limitintThe limit value.

Returns

The declared result.

(store.AuthPruneResult, error)

Full signature

func (backend *Store) PruneExpiredAuth( ctx context.Context, limit int, ) (store.AuthPruneResult, error)

Source adapters/sqlite/auth.go:550

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.