Skip to main content

Object Cache Showdown

Memcached vs Redis: Choosing an Object Cache for WordPress

Both cache data in memory to take load off your database, but Redis remembers more about that data than Memcached ever will — here's what that difference means for a busy WooCommerce store.

Multi-threaded

Memcached's core architecture for simple key-value storage

Persistent

Redis's optional disk persistence for cached data

Data structures

Lists, sets, sorted sets and hashes built into Redis

NVMe

SSD storage backing every cache-enabled hosting plan

In short

Redis vs Memcached is a question of what you need beyond raw key-value speed: Memcached is a simpler, multi-threaded, pure key-value store with no persistence, so a restart wipes the cache clean. Redis supports the same key-value caching but adds optional disk persistence and richer data structures — lists, sets, sorted sets, hashes — useful for session storage, rate limiting and leaderboard-style data beyond simple object caching. Both plug into WordPress and WooCommerce object-caching plugins.

For a straightforward WordPress object cache, the practical speed difference is small; the decision usually comes down to whether you need Redis's persistence and data structures for anything beyond caching database query results.

Both Redis and Memcached exist to solve the same core problem: repeatedly querying a database for the same data is slow, so keep frequently accessed results in memory instead, where reads are dramatically faster. For a WordPress or WooCommerce site, that usually means caching things like rendered menu output, transient API results, or common database query results so they don't hit MySQL or MariaDB on every page load.

Where they diverge is in what each one considers 'the job.' Memcached was built to do exactly one thing — store and retrieve simple key-value pairs as fast and simply as possible, spread across a multi-threaded architecture that scales well with more CPU cores. Redis was built to be a more general-purpose in-memory data store, supporting the same key-value caching but adding data structures, optional persistence, and pub/sub messaging that go well beyond object caching alone.

Architecture: Multi-Threaded Simplicity vs a Single-Threaded Feature Set

Memcached runs a multi-threaded architecture built around one job — storing and retrieving key-value pairs as quickly as possible, with minimal overhead per operation. That simplicity is a genuine strength: fewer moving parts means fewer places for something to go wrong, and its multi-threading scales cache throughput across CPU cores relatively cleanly as load increases.

Redis is largely single-threaded for its core command execution, which sounds like a step backward until you consider what that single thread is doing — supporting a much larger command set and richer data structures without needing to coordinate locking across multiple threads. In practice, Redis's single-threaded model rarely bottlenecks a typical WordPress or WooCommerce caching workload, since object cache operations are fast regardless.

Persistence: What Happens When the Cache Restarts

Memcached holds everything purely in memory with no option to persist it — restart the service, and the cache is empty, full stop. For pure object caching where the source of truth is always the database anyway, that's rarely a real problem: the cache simply repopulates as pages are requested again.

Redis can optionally persist its data to disk, either through periodic snapshots or an append-only log of write operations, so a restart doesn't necessarily mean starting from an empty cache. That matters more when Redis is being used for something beyond disposable caching — session storage or rate-limiting counters, where losing state on restart would actually break something rather than just costing a slower page load.

Data Structures: Beyond Simple Key-Value Pairs

Memcached stores a value against a key and that's essentially the whole interface — you can set it, get it, and delete it. For pure object caching, that's all you need, and the simplicity keeps overhead low.

Redis adds native support for lists, sets, sorted sets and hashes as first-class types, which opens up uses beyond object caching entirely — a sorted set makes a natural leaderboard or a time-ordered activity feed, a hash maps cleanly onto a product's attribute set, and a set handles deduplication tasks efficiently. For a WooCommerce store doing more than basic page caching — session handling, rate limiting on checkout attempts — those extra data structures are the practical reason to reach for Redis instead.

Which One to Actually Use for WordPress and WooCommerce

If the goal is strictly object caching — reducing repeat database queries for page rendering — Memcached's simplicity is genuinely sufficient, and its multi-threaded design handles that job efficiently without extra features going unused.

Redis tends to be the better default in practice because most caching plugins for WordPress and WooCommerce support it just as easily, and having persistence and richer data structures available costs nothing if you never use them, but saves a separate setup later if your site grows into needing session storage or rate limiting. Either way, both plug into standard object-cache plugins without a custom build.

Redis vs Memcached: Which Cache Is Faster?

Object Caching Built Into WordPress and WooCommerce Hosting

Hosting Cheap's WordPress and WooCommerce hosting supports object caching so pages and database-heavy WooCommerce queries aren't hitting MySQL or MariaDB on every request, running on pure NVMe SSD underneath either way.

Whether your object-cache plugin is configured for Redis or Memcached, the underlying LiteSpeed and NVMe foundation stays the same — the choice between the two is about your caching plugin's needs, not a hosting limitation.

  • Object caching support for WordPress and WooCommerce hosting plans
  • Compatible with standard Redis or Memcached caching plugins
  • Pure NVMe SSD storage under the database queries being cached
  • Free managed migration for sites already using either caching layer

Why Hosting Cheap

What you get

Object caching on WordPress hosting

Reduce repeat database queries for page rendering and WooCommerce catalog data.

Works with Redis or Memcached

Standard caching plugins for either option plug in without custom configuration.

NVMe-backed database

The queries being cached still run fast on pure NVMe SSD underneath.

LiteSpeed and LSCache included

Full-page caching pairs with object caching for a faster overall stack.

Free managed migration

Move a site already using Redis or Memcached without losing its cache setup.

24/7 human support

Help deciding which caching layer fits your WooCommerce store's actual needs.

How It Works

Get set up in a few steps

1

Check your current caching setup

Confirm whether your site already uses Redis, Memcached, or neither.

2

Pick the right layer for your needs

Choose Memcached for pure object caching, or Redis if you need persistence or extra data structures.

3

Install the matching caching plugin

Configure your WordPress or WooCommerce caching plugin to connect to the chosen layer.

Included

Everything you need, on every plan

  • Confirm whether your site currently uses Redis, Memcached, or no object cache at all
  • Check if you need persistence for session data or rate-limiting counters beyond page caching
  • Review whether your caching plugin supports both options or just one
  • Estimate how much your database is queried repeatedly for the same data
  • Test page load times before and after enabling object caching
  • Confirm LSCache full-page caching is also enabled alongside object caching
  • Weigh Redis's extra data structures against Memcached's simpler footprint

FAQ

Frequently asked questions

Is Redis faster than Memcached?

For pure key-value operations, both are fast enough that the difference is rarely noticeable on a typical WordPress site. Redis's advantage isn't raw speed — it's persistence and richer data structures that Memcached doesn't offer at all.

Does Memcached lose data if the server restarts?

Yes, Memcached holds everything purely in memory with no persistence option, so a restart clears the cache completely. It then simply repopulates as pages are requested again, which is rarely a problem for pure object caching.

Which one should I use for WooCommerce?

Redis is generally the more flexible default since it supports the same object caching Memcached does, plus persistence and data structures useful for session handling or rate limiting on checkout — features a growing WooCommerce store is more likely to need.

Do I need Redis or Memcached if I already have LSCache?

LSCache handles full-page caching, while Redis or Memcached handle object caching at the database-query level — they solve different parts of the speed problem and typically run alongside each other rather than replacing one another.

Can I switch from Memcached to Redis later?

Yes, most WordPress and WooCommerce caching plugins support either backend, so switching is usually a plugin configuration change rather than a rebuild, though cached data itself won't carry over between the two.

Does Hosting Cheap support object caching?

Yes, WordPress and WooCommerce hosting plans support object caching alongside LiteSpeed's built-in LSCache, running on pure NVMe SSD storage underneath.

Cache the Right Way for Your WooCommerce Store

Object caching support alongside LSCache and NVMe SSD — WordPress hosting from $4.19/mo.

Get Started