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
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
limit | int | The limit value. |
Returns
The declared result.
(store.AuthPruneResult, error)Full signature
func (backend *Store) PruneExpiredAuth(
ctx context.Context,
limit int,
) (store.AuthPruneResult, error)Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.
AuthPruneResultExpired session and API-key counts removed by one bounded cycle.