Skip to content
Magento glossary

What is Magento Redis Cache?

Short answer Magento Redis cache refers to Redis-backed application caching on supported Commerce releases. Session storage and full-page caching are separate configuration decisions. Where the exact release and patch remove Redis cache support, Valkey is the supported Redis-compatible remote-cache replacement. File caching remains an option.

How it works
  1. Check the supported backend before configuring it 01
  2. The cache holds reusable application results 02
  3. Page cache and session storage are designed separately 03
  4. Invalidation controls when cached data is reused 04
  5. Measurements guide memory and connection choices 05
Each step is explained below

Watch for this Logical database separation is treated as full isolation

How it works

Five parts of a supported cache design

The useful distinction is which workload stores the data, how it is invalidated and what happens if the service becomes unavailable.

  1. 01

    Check the supported backend before configuring it

    Redis is an in-memory data store used by supported Commerce releases for application caching and, separately, sessions. Where the exact Commerce release and patch remove Redis cache support, Valkey is the supported Redis-compatible remote-cache replacement. Adobe also documents a file-cache backend for 2.4.9 and later, plus supported backports. Check the release and deployment requirements; a successful connection alone does not establish support.

  2. 02

    The cache holds reusable application results

    A cache backend can hold configuration, layout and rendered block data so the application can reuse it. Cached values are not the authoritative product, customer or order database. The precise backend and options belong to the installed Commerce version and deployment configuration.

  3. 03

    Page cache and session storage are designed separately

    Application cache, built-in page caching and session storage have different data lifetimes and failure consequences. Distinct logical databases help separate keyspaces, but still share the instance's memory and failure domain. Adobe's deployment guidance recommends separate cache and session instances where available.

  4. 04

    Invalidation controls when cached data is reused

    Magento associates cache entries with identities and tags so relevant data can be invalidated after changes. If output is stale, investigate its cache layer and invalidation path before clearing unrelated storage. A larger or faster cache service cannot correct a module that supplies the wrong cache identities.

  5. 05

    Measurements guide memory and connection choices

    Inspect the intended instance's memory use, evictions, hit and miss counters, connections and latency over representative traffic. Correlate changes with application requests and indexing activity. Size and tune the workload from evidence rather than applying a fixed amount of RAM per SKU or a promised speed-up percentage.

When to use

When a cache-service decision needs review

These situations call for a supported cache and session design. They do not establish that Redis is the right backend for every current release.

  • A release supports the chosen remote cache

    Choose the documented backend for the exact Commerce patch. Redis remains relevant where supported; Valkey replaces it as the Redis-compatible remote cache where Redis support has been removed. File caching remains an option. Plan an upgrade against the documented choices rather than assuming every deployment needs a remote cache.

  • Several application nodes need a coherent cache plan

    A shared remote cache can be part of a multi-node design. Correct namespace, invalidation, connection and deployment settings still matter, and local L2 cache has its own version-specific behavior. Sharing a host does not automatically provide consistent application results.

  • Cache pressure needs to be distinguished from slow code

    Memory pressure, connection delays and low useful cache reuse can justify an investigation. Measure them alongside PHP, database and request behavior. Moving cache storage alone does not guarantee a faster page when the expensive work happens elsewhere.

  • Session storage or failover is being changed

    Sessions need their own persistence, capacity and recovery decisions. An eviction policy suitable for regenerable cache can remove active session data if both workloads share the instance. Test session behavior during a planned migration or failover instead of treating it as a cache-only change.

Common mistakes

Three cache assumptions to avoid

Review compatibility, workload isolation and measured pressure before changing service settings.

  • Logical database separation is treated as full isolation

    Different database numbers do not create separate memory budgets, processes or recovery domains. Confirm which projects and workloads share the service. Keep session needs separate from cache maintenance, and do not issue instance-wide clearing commands to resolve a page-cache symptom.

  • Compression and memory settings are copied without measurement

    Compression can trade CPU work for a smaller cache footprint. Its available options and useful thresholds depend on the backend and cached values. Compare memory, latency and application behavior before and after a controlled change; no fixed saving applies to every store.

  • An eviction policy ignores what the instance stores

    Eviction policies decide what happens under memory pressure. Removing a disposable cache key and removing an active session are different events. Review the service's memory limit, policy, persistence and workload isolation together rather than applying an unconditional LRU setting.

FAQ

Magento Redis Cache: frequently asked questions

  • Redis vs Memcached for Magento: which should I pick?
    Start with the supported services for the exact Commerce release, not a blanket product preference. Memcached session storage and a tag-aware application cache are different decisions. Where Redis cache support has been removed, Valkey is the supported Redis-compatible remote-cache replacement. File caching remains an option, so an older Redis-versus-Memcached comparison is not enough to select a modern deployment's cache backend.
  • Should I use Redis for full-page cache or stick with Varnish?
    They occupy different layers. Varnish is an HTTP full-page cache; Redis or Valkey can support application caching and separately configured session storage. Some supported deployments use a built-in page cache backend instead. Follow the version and hosting guidance and test the actual response path. Do not assume that both page-cache modes are active or that either delivers a fixed response time.
  • How much Redis memory do I need for a Magento store?
    Measure the workload. Store views, cached fragments, extensions, sessions, expiry settings, traffic and backend behavior all affect memory use. Observe memory, evictions, latency and application behavior over representative peaks. SKU count alone cannot provide a dependable memory allocation, and cache and session workloads should not inherit the same sizing rule.
  • Why is my Redis using more memory than the cache should?
    Confirm that you are measuring the intended instance and identify which workloads share it. Compare memory and eviction counters with cache traffic, session volume, expiry and compression settings. A large footprint is not automatically a leak or a reason to clear storage. The cache and search tuning article covers investigation across these layers.
  • Can I cluster Redis with Magento for high availability?
    High availability depends on the supported client/backend and provider arrangement, not just the server's clustering feature. Replication, persistence and automatic failover have different guarantees; asynchronous replicas can still lose recent writes during a failure. Check Commerce support and test recovery, especially for sessions, before selecting Sentinel, a managed service or a cluster topology.
  • Does Hyvä Themes affect Magento Redis usage?
    A theme change does not replace the configured cache or session service. Storefront extensions can still affect cache identities, page-cache eligibility and private content. Verify those integrations and measure the resulting requests. Do not assume a particular cache-hit ratio or performance gain solely from switching to Hyvä.
Redis audit

Need help planning a cache change?

Describe the Commerce version, cache and session arrangement, and the observed issue when discussing the work. A change should have a defined scope, acceptance checks and recovery plan.

Kishan Savaliya Online 10 AM to 7 PM IST Chat on WhatsApp