Skip to content
Redis

Serverless Redis

Free Redis, $0/mo with no card: a real endpoint in seconds, 2 databases, 5 GB, TLS by default, and the same redis-cli reflexes you already have. Cloud, desktop, or self-host.

Free tier, no credit card
Key-Value Console
Redis

Keys

  • session:847STR
  • user:1247HASH
  • cart:1247LIST
  • leaderboardZSET
> KEYS user:*
1) user:1247
2) user:1246
3) user:1245
> HGETALL user:1247
1) email
2) "alice@b.co"
3) plan
4) "free"
  • Free tier

    $0/mo, no credit card

  • Then flat

    $5 or $15/mo, no meters

  • Encrypted

    TLS on every plan

  • Layerbase Cloud

    Managed, in seconds

  • Desktop and CLI

    Run it locally or self-host

Talk to Redis over HTTP from the edge

Every Redis database on Layerbase exposes an Upstash-compatible REST endpoint alongside the normal TLS port. The Connect dialog shows a REST URL and a REST token: hand them to the @upstash/redis client, or to @vercel/kv which takes the same pair, and Cloudflare Workers, Vercel Edge, and anything else that cannot open a raw TCP socket reads and writes the same keys. redis-cli, ioredis, and redis-py keep working against the same database.

Serverless and edge access
@upstash/redis
import { Redis } from '@upstash/redis'

const redis = new Redis({
  url: 'YOUR_REST_URL',
  token: 'YOUR_REST_TOKEN',
})

await redis.set('key', 'value')

Connect with any Redis client

Session stores, caches, rate limiters, pub/sub, queues, and anything that fits a key/value or sorted-set shape.

  • Drop a Redis cache in front of your database without managing a node
  • Per-tenant session stores that scale to zero between bursts
  • Rate limiting and feature flags at the edge with the serverless driver
  • Real-time leaderboards and pub/sub for prototypes that go to production
  • Self-host on your own hardware with the Layerbase CLI when compliance requires it
Full Redis connection guide
bash
Redis
redis-cli -u "rediss://default:password@your-host.cloud.layerbase.dev:6379" ping

What you actually get on the free Redis tier

Free here is a real Redis endpoint on the Free plan, not a 30-day trial and not a credit balance that quietly runs out. This is what is included, what happens when the database sits idle, and where the line is.

Free is $0/mo with no card

The Free plan covers 2 databases, 5 GB of storage, and up to 20 concurrent connections. Redis is one of the engines you can create on it. There is no trial clock on the plan and no expiry date.

It sleeps after 15 minutes idle and wakes on connect

A free Redis database hibernates after 15 minutes with no connections; paid plans wait 6 hours. Hibernation keeps the hostname, the port, and the data volume in place, so the next connection wakes it in roughly 1 to 5 seconds and your command then runs normally. Your client needs to send the TLS SNI hostname, which every Redis client does once you set the TLS servername.

Persistence is on, scheduled backups start on paid

Every Redis database snapshots to disk, and hibernation shuts the server down with a final save, so a sleep and wake cycle does not cost you keys. Free keeps 1 manual backup slot you trigger yourself. Scheduled daily snapshots with one-click restore start on the paid plans.

Forget about it and it archives, it does not vanish

A free database left hibernated for 14 days is archived (7 days if you never connected to it): its address is released and it takes an explicit Restore, roughly 10 to 30 seconds, to bring it back. Data and backups are kept. After 90 continuous days archived the live resources are reclaimed and the most recent backup is kept and still restorable in one click. Paid plans are never auto-archived.

Create a free Redis database

No card on Free. Solo is $5/mo and Pro is $15/mo when you outgrow it.

Common Redis questions

Is there a free Redis tier?

Yes, and it is a plan rather than a trial: Free is $0/mo, asks for no card, and has no expiry date. It covers 2 databases, 5 GB of storage, and up to 20 concurrent connections, with TLS on by default, snapshot persistence to disk, 1 manual backup slot you take and restore from the dashboard, a web key-value console, and the Upstash-compatible REST endpoint for edge runtimes. What Free does not include is an always-on pool: a free Redis database hibernates after 15 minutes with no connections, so the first request after an idle spell pays the wake, roughly 1 to 5 seconds, as long as your client sends the TLS servername. Solo at $5/mo and Pro at $15/mo lift the connection cap, add scheduled snapshots, and let you pin a database always-on.

What is Redis?

Redis is an in-memory data store addressed through a small command set over keys and values, with sorted sets, lists, and pub/sub on top. It is the usual pick for caches, session stores, rate limiters, queues, and leaderboards rather than for primary application data. Layerbase runs it as a managed endpoint with TLS, a web key-value console, and an Upstash-compatible REST endpoint for runtimes that cannot hold a TCP socket.

Which Redis version do you run?

Layerbase Cloud runs a Redis version from before the BSL/SSPL license transition, so existing Redis clients work unchanged. For new projects we recommend Valkey (a Linux Foundation fork) for cleaner licensing: same wire protocol, same drivers.

Why does Layerbase offer Valkey as well as Redis?

Redis's license change put the upstream project under a source-available license that restricts redistribution. Valkey is the Linux Foundation's BSD-licensed fork of the last truly-open Redis version. For greenfield projects, Valkey is the safer long-term bet; for existing apps that depend on the upstream version, Redis on Layerbase still works.

Can I connect with redis-cli and existing drivers?

Yes. The endpoint speaks the standard Redis wire protocol on the allocated TLS port. redis-cli, ioredis, redis-py, go-redis, Jedis: anything that talks Redis works. The connection string format matches what you would point at a self-hosted Redis.

Is there a serverless HTTP driver for Redis?

Yes. Redis-family databases on Layerbase also speak the Upstash REST API, picked via the hostname suffix. That makes it usable from Cloudflare Workers and other edge runtimes that cannot hold a TCP connection.

How do persistence and backups work for Redis on Layerbase?

Every Redis database snapshots to disk on the stock RDB save schedule, Free included, and hibernation shuts the server down with a final save, so a sleep and wake cycle does not cost you keys. AOF is off, which is the same trade a default Redis makes. Free also gets 1 manual backup slot, taken and restored from the dashboard; what the paid plans add on top is scheduled snapshots (7d or 30d retention) with one-click restore.

What happens to a free Redis database when I stop using it?

It hibernates after 15 minutes idle, keeping its hostname, port, and data. If it stays hibernated for 14 days (7 days if you never connected to it) it is archived: the address is released and an explicit Restore, about 10 to 30 seconds, brings it back. Data and backups are kept. After 90 continuous days archived the live resources are reclaimed and the most recent backup is kept and still restorable. Paid plans are never auto-archived.

Can I run the free Redis tier in production?

For a low-traffic side project, yes. For anything that cannot absorb a cold start, no: Free has no always-on pool, so an idle database sleeps and the first request after that pays the wake. Free also caps concurrent connections at 20 and gives you 1 manual backup slot rather than scheduled snapshots. Solo at $5/mo and Pro at $15/mo lift all three.

Branch Redis in seconds

Fork a running Redis into a full, isolated copy with its own connection string. Copy-on-write makes it near-instant, not a dump and restore. Point a preview deploy at it, test a migration, then throw it away. Layerbase branches 16 engines, not just Postgres.

See how branching works

Everything a Redis database should ship with

The same primitives on every Redis database: TLS, web console, hibernation, and a real dashboard. The rows that need a paid plan say so on the row; nothing here is hidden behind a sales call.

Web IDE

Query console in the dashboard, no extra client to install.

Included

TLS by default

All connections encrypted. No setup required.

Included

Always-on connections

Pin a database to your plan's always-on pool so it never hibernates. Free has no pool, so a free database always sleeps when idle; Solo includes 768 MB of pool and Pro 1.5 GB.

Included, Paid plans

Scale to zero

Hibernates when idle. Wakes on the next connection.

Included

Connection pooling

Pooled endpoint for serverless and edge workloads.

Not available

Direct connections

Bypass the pooler for migrations and replication.

Included

Native HTTPS endpoint

Engines whose own wire protocol speaks HTTPS. Every database, including this one, is also queryable over the platform's HTTPS query API and web console.

Not available

Serverless driver

Drop-in HTTP driver for edge runtimes (Neon serverless, PlanetScale, Upstash REST, or the engine-native client).

Included

IP whitelisting

Restrict access to specific IPs or CIDR ranges.

Included

Automatic backups

Scheduled dumps and volume snapshots with one-click restore on paid plans. Free includes 1 manual backup slot you take and restore yourself.

Included, Scheduled: paid plans

What Redis costs on Layerbase

Plans are flat. There is no per-hour compute meter, no per-database line item, and no ingress or egress fee, so the bill does not change shape when your traffic does. You do not need an AWS, GCP, or Azure account either: Layerbase runs the infrastructure.

Free$0

Scale to zero when idle. No credit card.

Solo$5/mo

The database you pin never sleeps.

Pro$15/mo

Every engine, plus a bigger always-on pool.

Hosted Redis, compared

Upstash

Free tier
256 MB and 500K commands per month
Billing
$0.20 per 100K commands after the free allowance, plus $0.25 per GB stored

Redis Cloud

Free tier
30 MB
Billing
Essentials from $5/mo once you pass the 30 MB free database

Layerbase

Free tier
Real Redis on the Free tier with 5 GB of account storage
Billing
$0, $5, or $15/mo flat. No per-command meters.

Competitor facts verified September 7, 2026 against each vendor's own pricing and documentation pages: Upstash, Redis Cloud.

Already have data? Migrate it from Railway, Replit, Upstash, and more Any connection string works too.

Or try Valkey, Redis-protocol-compatible and license-clean

Valkey is the Linux Foundation fork of Redis that speaks the same wire protocol without the BSL/SSPL license complications. For new projects, point your client at Valkey instead: same redis-cli, same drivers, same commands.

Compare Redis and Valkey

More on Redis

All articles

Redis is developed by the Redis project. Layerbase packages and hosts official releases; the engine itself is built upstream.

redis.io