Questions about how to check the cashe usage and, about specifying the cache size

Aperta
#72 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go

Direzione di ricerca

Start with the fastcache.New(maxBytes) documentation linked in the issue and verify what maxBytes represents. Check whether the current API exposes cache usage or free quota; done means the documentation clearly answers the 64 MB value question and explains the availability of usage metrics.

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

Descrizione

Hi Team,

I've developed an application and used FastCache as an in-memory data store. So far, everything works fine. One thing I'm struggling is to figure out is how to see the cache usage in megabytes.

So,

  1. Is there a way to get the cache usage (not the allocation) and/or the free quota?
  2. If it's not possible at the moment, would such a feature be made available in the future?

There's some confusion in the documentation as well, when creating a cache using fastcache.New(maxBytes)
(https://pkg.go.dev/github.com/VictoriaMetrics/fastcache#New)

  1. If we need a cache of 64MB, should we specify maxBytes as 64 or 64000000?
Lingua principale
Go
Stelle
2.4k
Fork
199
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 VictoriaMetrics/fastcache

Tutte le issue di VictoriaMetrics/fastcache

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.