The fastest client for PHP

100× faster cache reads, near-zero bandwidth — all from a self-invalidating in-memory replica, no code changes required.

What’s new in v0.22.0

Cutting-edge app or legacy codebase, supercharge anything.

Magento
WordPress
Symfony
Drupal

Active invalidation

There’s one hard problem in computer science

Relay is a PHP extension that is both a Redis™ client and a shared in-memory cache, collapsing the boundary between APCu and PhpRedis into a single primitive.

It uses server-assisted client-side caching to actively invalidate its in-memory cache and optionally informs you about invalidations, so your app can update its runtime cache mid-request.

<?php

$relay = new Relay(host: '127.0.0.1', port: 6379);

// Fetch the user count from Relay’s memory,
// or from Redis if the key has not been cached, yet.
$users = $relay->get('users:count');

// Listen to all invalidation events.
$relay->onInvalidated(function (Relay\Event $event) use ($users) {
    if ($event->key === 'users:count') {
        $users = null;
    }
});

Built for scale

Outrageously fast, lock-free under load

Relay maintains a highly efficient, partial replica of Redis’ data in the PHP master process’ memory — handling millions of requests per second while cutting network communication with Redis™ to a bare minimum. That saves you resources, bandwidth, and money.

Redis’ breaking point is its single-threaded nature, often forcing complex and unnecessary replication or clustering. Relay’s multi-threaded, lock-free architecture removes that bottleneck, letting every PHP worker access data concurrently without blocking.

Seamless integration

A drop-in replacement for PhpRedis

Relay can easily be integrated with most existing apps, websites and e-commerce stores — no code changes necessary.

Advanced integrations for Laravel, WordPress, Magento, Drupal and many other platforms are ready to go.

Relay is a modern rewrite — everything from cluster replica failover to session locking has been rethought, and modern features like AZ affinity routing land the moment they ship.

Adaptive caching

Caches what’s hot

Caching everything is a recipe for thrashing — one-off reads evict the keys your app actually needs. Relay can observe access patterns and decide what’s worth keeping in its in-memory cache, automatically.

The result is a cache that stays warm under realistic, skewed workloads — especially impactful for chaotic apps like WordPress, where a small slice of keys absorbs the bulk of reads.

Pricing

Relay is free to use — forever. Upgrade for more memory.

Community

Free Forever

Download
  • Unlimited vCPUs
  • Community support
  • Limited to 64 MB

Business

$147 /month

Sign up
  • 8 vCPUs included
  • Email support
  • No memory limits
  • $2/mo per extra vCPU

Enterprise

Ask for Quote

Request a quote
  • Reduced vCPU pricing
  • SLA & Slack support
  • Engineer-led onboarding
  • Payment via invoice
How many vCPUs are you running?

$147 per month for 8 active vCPUs

Relay has a Fair Billing Policy and only bills for actively used production vCPUs. No need to worry about idle machines, bursts, short-lived CLI processes or staging environments.

Questions? Just curious?

Follow us on Bluesky, join our Discord or send us an email.

Sign up to follow Relay’s development and receive special offers.