Master da Web
Managed Redis

Managed Redis for caching, queues and sessions

Redis on a machine of its own, with Valkey 9 — maintained by the Linux Foundation and compatible with Redis clients — TLS and a password required, data written to disk every second and metrics in the console. Connect it to your app and pay in reais.

  • Valkey 9, compatible with Redis clients
  • TLS and a password required
  • Writes to disk every second
  • A memory policy for queues or for caching

No lock-in: prepaid credit via Pix, boleto or card, billed by the second.

Version
Valkey 9
Persistence
To disk every second
Clients
Up to 4,000 connected
Data
Up to 2,500 MB
Starting at
R$106.60/month
Production-ready

A Redis you don't have to babysit

Setup, certificates, persistence and metrics are handled by the platform. You connect and use it.

Data written to disk every second

Every write goes to the on-disk log (AOF) every second, with RDB snapshots: a restart doesn't empty your queues or your sessions.

A memory policy your way

noeviction for queues and sessions, which can't lose keys; allkeys-lru or allkeys-lfu for caching, which drops what's least used when memory fills up.

TLS and a password required

Only rediss:// connections, with a username and password. There is no passwordless default user, and each connected service gets its own login.

Metrics and slow commands

Memory, keys, commands per second, hit rate and evicted or expired keys minute by minute for 30 days, and the slowlog in the console.

Only those you allow can reach it

Your connected services, up to 50 VPS instances picked by name, up to 50 addresses or networks, or mw redis connect.

More memory when the queue grows

Move to a size with more memory and more clients with a restart; what was written to disk comes back with the database.

Configuration

Built for queues, caching and real time

The memory policy and the parameters that matter, in the console and without a restart.

Laravel queues, BullMQ, Sidekiq and Celery

With noeviction, when memory is full, writes are refused instead of jobs being deleted, and the AOF every second brings the queue back after a restart — in a crash, at most the last second of writes is at risk.

  • REDIS_URL, or Laravel's REDIS_* variables, filled in with one click
  • Keyspace events (notify-keyspace-events) to react to expirations
  • A login of its own for each connected service

.env

# the connected Redis's variables, in Laravel formatREDIS_HOST=<id>.db.meu-app.netREDIS_PORT=6379REDIS_USERNAME=loja_webREDIS_PASSWORD=generated-for-the-serviceREDIS_SCHEME=tls # and the app uses Redis for the queue and the cacheQUEUE_CONNECTION=redisCACHE_STORE=redis

Memory policy

noeviction
The default: when memory is full, writes are refused. For queues and sessions.
allkeys-lru
Drops the keys used longest ago. For caching.
allkeys-lfu
Drops the least used keys overall. For caches with popular keys.
volatile-lru · volatile-lfu
The same rules, only among keys with an expiry.
volatile-ttl
Drops the keys that expire soonest first.

Parameters

notify-keyspace-events
Keyspace events over pub/sub, such as expirations.
slowlog-log-slower-than
How many microseconds before a command counts as slow.
slowlog-max-len
How many slow commands to keep, up to 10,000.
timeout
Closes idle clients after N seconds.
maxmemory-samples
The precision of LRU and LFU.

Redis has no backups to restore: it writes to disk every second, but it doesn't go back in time. For data you can't afford to lose, use PostgreSQL, MySQL or MariaDB.

Connect

Connect to Redis from any language

The Redis clients you already use work with Valkey. On a connected service, REDIS_URL arrives ready, with TLS.

  • Serverless apps

    Connect the database to a service and the variables arrive on their own, with a login just for that service, rotated every 90 days.

  • Your VPS instances

    Pick the instance in the list of allowed addresses: Redis keeps up when the instance's IP changes.

  • Your computer

    mw db connect opens the client; mw db tunnel, a local port for DBeaver or your ORM, without exposing the database.

redis.js
import Redis from "ioredis" // REDIS_URL arrives on its own: rediss://, with TLSconst redis = new Redis(process.env.REDIS_URL) await redis.set("visitas", 1)
Persistence

What happens to your data

Redis lives in memory; Valkey writes to disk every second so a restart doesn't empty anything.

AOF every second

Every write goes to the on-disk log; on a restart, the database comes back with everything written up to the last second.

RDB snapshots

A compact copy of the data on the database's own disk, in addition to the log.

No going back in time

Redis has no backups or point-in-time restore. Keep in it what can be rebuilt.

Deletion protection

On by default: a Redis is only deleted after you turn it off and confirm the name.

What it's for

Where Redis makes a difference

Microsecond responses for what your app looks up all the time.

01

Page and query caching

Take load off your main database and respond in microseconds.

02

Job queues

Laravel Horizon, BullMQ, Sidekiq and Celery, with noeviction so no work is lost.

03

Sessions and logins

Sessions shared across your app's instances, which scale without dropping anyone's session.

04

Rate limiting

Counters with an expiry to protect APIs from abuse.

05

Leaderboards and real time

Sorted sets for rankings, counters and feeds.

06

Pub/Sub and events

Messages between services and keyspace notifications.

Switching Redis

Switch Redis without stopping your app

Cache and sessions rebuild on their own; a queue just needs to be drained before the switch.

  1. 1

    Create the Redis

    Choose the size by the memory your data takes up today.

  2. 2

    Connect it to the app

    Connect it to the service, and REDIS_URL arrives on the next deployment, or change the URL on your server.

  3. 3

    Drain the old queue

    Let the workers finish the old Redis's jobs, then turn it off.

Terminal

$ mw redis create loja-cache --size kv-1-1 # connects it to the service: REDIS_URL arrives on the next deployment$ mw redis bind loja-cache --service web

Bring it from wherever it runs today

  • Redis Cloud
  • Upstash
  • Amazon ElastiCache
  • Heroku Data for Redis
  • Your VPS
Sizes and prices

How much managed Redis costs

A fixed monthly price, in reais, billed by the second. Choose the size by the memory your data takes up.

Build your database

Choose the size and see the monthly price. You can change it later.

Size

Estimated total

R$154.80/month

≈ R$0.2121 an hour

1 vCPU · 2 GB · 1,250 MB of data
R$154.80
  • TLS and a password required
  • Writes to disk every second
  • Metrics and slowlog
  • One login per connected service
Create Redis

Billed by the second, from when the database is ready. No lock-in.

Compare

Managed Redis, on your VPS or on a cloud abroad

All three work. The difference is what's left to you and how much it costs, in reais.

Comparison of managed Redis, Redis installed on a VPS and international clouds
Master da WebInstalled on your VPSInternational clouds
Setup and tuningReady in a few minutesUp to youReady
TLS and passwordRequiredYou configure themNot always
Disk persistenceEvery secondYou configure itDepends on the plan
Billing currencyReais, no IOF taxReaisUS dollars, plus IOF tax
Where the data livesBelo HorizonteWherever the VPS isUsually outside Brazil
SupportIn PortugueseIn PortugueseUsually in English
FAQ

Frequently asked questions about managed Redis

What everyone asks before moving their database to the cloud.

Your Redis, ready in a few minutes

Choose the size, create your Redis and connect in a few minutes.