Introduction
Object caching, with Redis or Memcached, significantly improves dynamic sites that run many database queries. At Konet, Redis and Memcached are available on all plans, at no extra cost. The two most popular technologies are Memcached and Redis. Although they share a common goal (reducing load time), they differ significantly in capabilities and use cases.
What is Memcached?
-
Open source, lightweight and very fast.
-
Ideal for simple object caching (key-value store).
-
Designed for speed, not complexity.
-
Uses RAM to reduce queries to the database.
Advantages
-
Very fast and efficient.
-
Excellent for simple read-heavy workloads.
-
Easy installation and low resource usage.
Disadvantages
-
No persistence support (once memory is cleared, the data is lost).
-
Limited capabilities (no advanced data types).
-
Not suitable for complex data structures.
What is Redis?
-
Open source, a more recent and more advanced solution than Memcached.
-
Supports multiple data types (strings, lists, sets, hashes).
-
Offers persistence: it can store data permanently on disk.
-
Offers advanced features such as replication, clustering, pub/sub.
Advantages
-
Support for complex data structures.
-
Ability to store data permanently (durability).
-
Better scalability (clustering).
-
Flexible: caching, message broker, real-time analytics.
Disadvantages
-
More resource-intensive.
-
More complex management and configuration.
-
Some features are not needed for simple websites.
Comparison Table: Redis vs Memcached
| Feature | Memcached | Redis |
|---|---|---|
| Speed | Very high | High but slightly heavier |
| Data structures | Key-Value only | Strings, Lists, Sets, Hashes |
| Persistence | No | Yes (RDB, AOF) |
| Scalability | Horizontal scaling only | Clustering & replication |
| Use in WordPress | LiteSpeed Cache, W3TC | LiteSpeed Cache, Redis Cache Pro (third-party commercial plugin, not provided by Konet) |
| Resource usage | Minimal | Higher |
| Suitable for | Simple caching | Advanced caching & data store |
When do you use each one?
-
Memcached
Simple websites built with WordPress, Joomla, Drupal
Ideal for shared hosting & lightweight applications
When you want maximum speed without extra complexity -
Redis
High-traffic websites with complex databases
WooCommerce, Magento, e-commerce applications
Real-time applications (e.g. chat, notifications, gaming)
When data persistence or clustering is required
Frequently Asked Questions
1. Is Redis always better than Memcached?
No. For simple workloads, Memcached is considerably faster and more economical. Redis stands out in complex scenarios.
2. Are both supported at Konet?
Yes. Redis and Memcached are available on all Konet plans, at no extra cost. See how to enable it in the LiteSpeed Redis Cache Manager guide.
3. Which is better for WordPress?
Both work with LiteSpeed Cache. For WooCommerce or large sites we recommend Redis; for small and medium sites Memcached is enough.
4. Do I need a special plugin?
Yes. For WordPress you can use LiteSpeed Cache. For other CMSs there are modules or configuration guides.
5. Is there an extra cost?
No. Redis and Memcached are included on all Konet plans at no extra cost.