Skip to content

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

@para-d

Description

@para-d

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions