Skip to content

Redis

Available

Runsite Platform provides fully managed Redis — for caching, session storage, queues and pub/sub. Provisioned in seconds, with TLS on the public endpoint and zero exposure on the internal one.

Redis 6, 7 (default) and 8.

POST /api/redis
Content-Type: application/json
{
"name": "session-cache",
"redis_version": "7"
}

The response includes the password and both connection URLs.

Each Redis instance exposes two endpoints:

URLWhen to use it
InternalFrom other Runsite services in the same project. Stays on the private network.
ExternalFrom anywhere on the internet. Encrypted with TLS.

Both URLs are standard Redis connection strings:

redis://:password@host:6379
rediss://:password@host:6379 # TLS variant for the external URL
Terminal window
REDIS_URL=redis://:password@redis-internal.runsite.local:6379

Set it in your web service’s environment variables and use it from any Redis client.

Terminal window
redis-cli -u "rediss://:password@redis.runsite.app:6379"
OperationEndpoint
StartPOST /api/redis/{id}/start
StopPOST /api/redis/{id}/stop
StatusGET /api/redis/{id}/status
UpdatePATCH /api/redis/{id}
DeleteDELETE /api/redis/{id}

Stopping an instance releases its compute. Data is preserved (subject to the persistence configuration) and available when you start it again.

Each instance has a memory limit configured at creation time. Resize up at any moment without downtime.

EndpointDescription
GET /api/redis/{id}/metricsCurrent CPU, memory and connection count.
GET /api/redis/{id}/metrics/history?period=3600Historical metrics.
GET /api/redis/{id}/logs?tail=100Recent server logs.
WS /api/redis/{id}/logs/streamLive log stream.

Redis instances persist data to disk by default. You can disable persistence for ephemeral cache use cases on the instance settings page.

Manual snapshots and scheduled snapshots are available. See Backups.

Use the right URL

Always prefer the internal URL when connecting from another Runsite service — it is faster, free of egress, and never exposed publicly. Reserve the external URL for local development and tooling outside Runsite.