method

Store.PruneExpiredAuth

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

PruneExpiredAuth removes one bounded batch from each expiring durable credential family. The candidate ordering matches the lifecycle indexes; row locks let every process run the same maintenance cycle without duplicate work or an application-wide coordinator.

Source adapters/postgres/auth.go:526

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

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.

  • AuthPruneResult

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