PHPackages                             cachewerk/magento-relay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. cachewerk/magento-relay

ActiveMagento2-module[Caching](/categories/caching)

cachewerk/magento-relay
=======================

A Magento 2 module to integrate Relay.

0.1.1(3y ago)490MITPHPPHP ^7.3|^7.4|^8.0

Since Dec 1Pushed 3y ago3 watchersCompare

[ Source](https://github.com/cachewerk/magento-relay)[ Packagist](https://packagist.org/packages/cachewerk/magento-relay)[ Docs](https://relay.so)[ RSS](/packages/cachewerk-magento-relay/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (2)Used By (0)

Magento Relay
=============

[](#magento-relay)

Installation
------------

[](#installation)

First, [install Relay](https://relay.so/docs/installation) as a PHP extension for your CLI and FPM environments.

Next, install the Magento module:

```
composer require cachewerk/magento-relay
```

Finally, activate the module. Relay won't be used until you configure Magento to do so.

```
bin/magento module:enable CacheWerk_Relay
bin/magento setup:upgrade
```

Configuration
-------------

[](#configuration)

If you're not using Magento's Redis integration for caching and sessions, we recommend configuring and testing that first.

- [Use Redis for session storage](https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-session.html)
- [Use Redis for default cache](https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html)

### Sessions

[](#sessions)

To use Relay as the session backend, simply set `session.redis.client` to `relay` in your `app/etc/env.php`:

```
'session' => [
    'save' => 'redis',
    'redis' => [
+       'client' => 'relay',
        'host' => '127.0.0.1',
        'port' => 6379,
        'database' => 2,
        // ...
    ]
],
```

### Cache Backends

[](#cache-backends)

Relay can be used for any Redis-enabled cache backend in your `app/etc/env.php`:

```
'cache' => [
    'frontend' => [
        'default' => [
            'id_prefix' => '5ac_',
-           'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
+           'backend' => 'CacheWerk\\Relay\\Cache\\Backend\\Relay',
            'backend_options' => [
                'server' => '127.0.0.1',
                'port' => 6379,
                'database' => 0,
                // ...
            ]
        ],
        'page_cache' => [
            'id_prefix' => '5ac_',
-           'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
+           'backend' => 'CacheWerk\\Relay\\Cache\\Backend\\Relay',
            'backend_options' => [
                'server' => '127.0.0.1',
                'port' => 6379,
                'database' => 1,
                // ...
            ]
        ]
    ],
],
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a730bb071d0b4892339f75b4707b6b651733e5f49297af31746dd9e99d4a0e1c?d=identicon)[tillkruss](/maintainers/tillkruss)

---

Top Contributors

[![tillkruss](https://avatars.githubusercontent.com/u/665029?v=4)](https://github.com/tillkruss "tillkruss (26 commits)")

---

Tags

magentomagento2redis

### Embed Badge

![Health badge](/badges/cachewerk-magento-relay/health.svg)

```
[![Health](https://phpackages.com/badges/cachewerk-magento-relay/health.svg)](https://phpackages.com/packages/cachewerk-magento-relay)
```

###  Alternatives

[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[vendic/module-optimize-cache-size

Magento 2 extension that reduces the number of cache keys by removing catalog\_product\_view\_id\_, catalog\_product\_view\_sku\_, catalog\_product\_view\_attribute\_set\_, catalog\_category\_view\_id\_ layout handles by default

3453.6k](/packages/vendic-module-optimize-cache-size)[litespeed/module-litemage

LiteMage Full Page Cache for LiteSpeed Web Server

3254.8k](/packages/litespeed-module-litemage)[redchamps/module-easy-cache-clean

Clean invalidated cache(s) easily in a Magento 2 store

2838.0k](/packages/redchamps-module-easy-cache-clean)[yireo/magento2-autoflushcache

2813.5k](/packages/yireo-magento2-autoflushcache)[graycore/magento2-graph-ql-cache

A Magento 2 module that modifies the built-in GraphQlCache FPC.

121.5k](/packages/graycore-magento2-graph-ql-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
