Prevent expired keys from needing to be written to disk (TTL support)

Aperta
#6 2 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
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

The payload names no source files, so start from the cache's eviction-to-disk path and the HybridCachePolicy::WriteOnEviction setting in foyer. Read the linked StorageFilter::filter docs and foyer issue 983 first, since the issue says this work depends on that upstream change. Done when entries whose TTL has expired are not written to disk on eviction, which needs a way to see expiry at filter time.

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

Descrizione

With foyer's HybridCachePolicy::WriteOnEviction data whose TTL has expired need not be written to disk when being evicted from memory cache.

Depends on https://github.com/foyer-rs/foyer/issues/983 as the currently-available filtering mechanism is based around entry size and current IO stats https://docs.rs/foyer/latest/foyer/struct.StorageFilter.html#method.filter

Lingua principale
Rust
Stelle
622
Fork
18
Merge medio
17h 8m
PR unite (30g)
35

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 s2-streamstore/cachey

Tutte le issue di s2-streamstore/cachey

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.