Full-featured vs minimal in-memory cache.
| Redis | Memcached | |
|---|---|---|
| Data types | Many | Key-value only |
| Persistence | Optional | None |
| Pub/sub | Yes | No |
| Use case | Cache + more | Pure cache |
More than just cache: pub/sub, queues, data structures.
Pure caching, max simplicity.
Redis for almost all new use cases. Memcached is legacy.