Sweaty Imposter

Memcached Versus Redis

TradeoffSeniorStaffUpdated

You need a cache that also supports rate-limit counters, sorted sets for leaderboards, and pub/sub for notifications.

Short answer: Redis. Redis ships rich data structures (sorted sets, hashes, streams) and pub/sub.

The Two Options

A

Memcached

B

Redis

Drill This: Your Pick First

The Better Pick

Option B

Redis

Redis ships rich data structures (sorted sets, hashes, streams) and pub/sub. Memcached is purely string key-value (KV).

When the Other One Wins

Memcached

If you genuinely only need a least recently used (LRU) string cache and want maximal memory efficiency + simplicity, Memcached has lower overhead.