method

Store.PruneExpiredAuth

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.

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/postgres/auth.go:573

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.