dgraph-io / ristretto

A high performance memory-bound Go cache

Home Page:https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION]: How can I pre warm the cache ?

modestlearner opened this issue · comments

Question.

I am trying to pre populate the cache.

  • My num counters are 200k
  • The cache currently holds ~150k counters.
  • I am trying to add 200k more counters with latest values.

Will the cache remove the old 150k counters or will it not let the new counters after 50k to get populated since its an LFU and the new counters would surely not be used more than the previous one.