All posts

Tag

Caching

RSS

10 posts tagged “Caching”.

When will my Valkey or Redis cache run out of memory? Sizing it with the Cache Size Simulator

used_memory tells you where you are, not where you're going. The Cache Size Simulator samples what your keys actually weigh, projects growth and TTLs forward, tells you when you hit maxmemory and what your eviction policy will do about it, and picks the smallest ElastiCache, MemoryDB, Memorystore or Azure node that still fits in six months. Works on Valkey, Redis OSS and other RESP-compatible databases.

Kristiyan Ivanov•

We benchmarked our semantic cache against Upstash. The thresholds did not transfer.

BetterDB vs @upstash/semantic-cache on four public datasets. Quality is at parity. The same embedding model produced different score distributions on each runtime, so the optimal threshold was different on each side, which is the whole argument for self-tuning. Latency is local Valkey vs a cloud REST API, so we report it as a deployment difference, not a library win. And BetterDB ships OpenTelemetry, Prometheus, and dollars-saved tracking in the MIT library, where Upstash ships none of it.

Kristiyan Ivanov•