RE: Introducing the Hunnypot 🍯

You are viewing a single comment's thread:

Both actually, originally it was just by time, but after I made the post I added a cap of 1000 max_cache (env var, so can be adjusted) jut to prevent potential memory leaks since it's in mem cache and not a redis cache or anything.



0
0
0.000
1 comments
avatar

Time cap plus a hard max is great, it save cycles on modest hardware. If the cAChe hits 1000, are you evicting oldest or LRU style to keep stories stable? Also thsi might help perf if TTL refresh on hit, else hot entries churn fast :)

0
0
0.000