Background session cleanup

Aperta
#577 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

Start by locating the session store implementations, especially the database and file-based stores mentioned in the issue, and check how expiration is represented and how background jobs are supported. Consider whether cache cleanup belongs in the same mechanism. Done means expired keys are periodically removed from the relevant stores; the issue does not identify specific files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

C-lib enhancement
Problem statement

Currently, some of the session store implementations (such as the database store, file-based store) do not do any sort of cleanup for expired keys. This means the session keys will pile up over time and will never get deleted.

When we get a support for background job processing, we should add an automatically run jobs that will clean up expired session keys periodically.

The same thing probably also applies to the Cache.

Proposed solution

Provide a background job that will clean up expired keys periodically.

Alternatives considered

No response

Drawbacks

No response

Additional context

No response

Lingua principale
Rust
Stelle
1.1k
Fork
57
Merge medio
17h 39m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cot-rs/cot

Tutte le issue di cot-rs/cot

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.