TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby jottoover 5 years ago
Just need a key&#x2F;val get&#x2F;set.<p>Redis stores everything in memory. It uses the disk for snapshots, but what about using the disk when there&#x27;s not enough memory for storage? (memory is expensive)<p>Postgres works except it doesn&#x27;t reclaim disk space without a vacuum full (which requires a lock) so if you&#x27;re doing a lot of deletes, Postgres is impractical.

1 comment

nikisweetingover 5 years ago
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.<p><a href="https:&#x2F;&#x2F;redis.io&#x2F;topics&#x2F;virtual-memory" rel="nofollow">https:&#x2F;&#x2F;redis.io&#x2F;topics&#x2F;virtual-memory</a>