Skip to content

Ask HN: Is there a Redis alternative that uses disk?

2 pointsjotto1 comment
On HN

Just need a key/val get/set.

Redis stores everything in memory. It uses the disk for snapshots, but what about using the disk when there's not enough memory for storage? (memory is expensive)

Postgres works except it doesn't reclaim disk space without a vacuum full (which requires a lock) so if you're doing a lot of deletes, Postgres is impractical.

Comments

Just set `vm-enabled yes` in your redis config and it will use virtual memory (aka disk) to store the actual values, while keeping as many keys as it can in-memory to ensure fast lookups.

https://redis.io/topics/virtual-memory

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.