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

Đang mở
#72 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
backend, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?
Ngôn ngữ chính
Go
Star
2.4k
Fork
199
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VictoriaMetrics/fastcache

Tất cả issue của VictoriaMetrics/fastcache

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.