Skip to main content
Redis gives your hosted app a managed in-memory store for caching, sessions, rate limiting, and queues: one Redis per environment, protected by a password and wired into your runtime for you. Redis is a paid runtime add-on. Enable it from Hosting → Redis; the price for your app is shown on the button.

Sizes and prices

An app has one Redis, in one of six sizes, billed per app per month: You can change the size at any time from the Redis screen. A bigger size applies once its charge is paid. A smaller one applies at the next renewal. See Changing hosting for how charges are prorated.

What you get

  • A Redis of its own for the environment, in the environment’s region, reachable privately from your app. It is not exposed to the internet, and no other app can read its data.
  • The memory of the size you chose. The Redis screen shows it. Plan your keys and their expiry around it: once Redis is full, writes start failing.
  • Connection details injected at deploy time, so there is nothing to copy into your code:
REDIS_URL and REDIS_PASSWORD come from the secret store. Their values are omitted from regular add-on and environment responses. If you set a variable of the same name yourself, yours wins and Meridian leaves it alone.

TLS and the username

Newer Redis add-ons accept TLS connections only and authenticate as the user app. On those, REDIS_URL starts with rediss:// and already carries the user and password, REDIS_TLS is true, REDIS_USERNAME is app, and the Redis screen shows the username and a TLS note. The certificate is publicly trusted, so your client needs no CA file. Older add-ons take a plain connection with the password alone; on those REDIS_URL starts with redis://, and REDIS_TLS and REDIS_USERNAME are not set. Code that connects with REDIS_URL works with both. If your client takes separate settings, read REDIS_TLS and REDIS_USERNAME when they are present: the PHP snippet on the Redis screen shows how.

Connection timeouts

Set a command timeout of a few seconds in your Redis client, for example commandTimeout in ioredis or socket.socketTimeout in node-redis. During maintenance a connection can be cut without the operating system noticing, and without a timeout a command on it can wait for minutes. With one, the command fails quickly and the client reconnects.

Enabling it

Provisioning takes a few minutes; the page refreshes itself and shows Provisioning until Redis is ready. Once it is, the Redis screen shows the host, port and memory, plus ready-made connection snippets for Node, PHP and Ruby. The password stays hidden until a collaborator with Credentials: Manage (credentials.manage) access to the app selects Reveal password. Each reveal is recorded in the organization audit log. When Redis is ready, Meridian updates your live revision with the connection variables, so there is no need to redeploy. An environment that has not been deployed yet picks them up with its first deploy.

Removing it

There are two ways to remove Redis from an environment, both on the Redis screen:
  • Cancel stops the add-on at the end of the current billing period. Redis keeps working until then, and you can undo the cancellation before it takes effect.
  • Delete Redis now removes it at once and stops billing for it. It needs the Hosting: Delete permission and asks you to confirm.
Either way, Redis and every key in it are deleted. The variables stop being injected from the next deploy, so remove the code that reads them first. Enabling Redis again later gives you a new, empty add-on.
Redis can only be enabled once your production environment exists. On a brand-new app, wait for the first environment to finish provisioning.
Last modified on November 16, 2026