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
| 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 SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.
AuthPruneResultExpired session and API-key counts removed by one bounded cycle.