Templates

Redis

Deploy Redis 7 with persistent storage — in-memory data store for caching and pub/sub

Ink deploys Redis 7 as a container service with a persistent volume. Your agent provisions the instance using a template — no authentication is required by default since the service is only accessible within your project.

Deploying

Your agent uses the template_deploy MCP tool:

Tool Call
(
  : "redis",
  : "my-cache"
)
{
  "services": [object Object],
  "outputs": [object Object]
}

Or via the CLI:

ink template deploy redis --name my-cache

No authentication by default

Redis is deployed as an unexposed service — it is only accessible to sibling services within the same project. No password is set by default.

Persistent storage

A persistent volume is attached at /data (1 Gi default). Data survives container restarts and redeployments.

Connecting

The internal URL (my-cache:6379) is used for service-to-service communication within the same project. Any sibling service can connect by hostname — no external networking required.

redis://my-cache:6379

Client libraries

Node.js

npm install ioredis
import Redis from 'ioredis';

const redis = new Redis({
  host: 'my-cache',
  port: 6379,
});

await redis.set('key', 'value');
const value = await redis.get('key');

Python

pip install redis
import redis

r = redis.Redis(host="my-cache", port=6379)
r.set("key", "value")
value = r.get("key")

Specs

PropertyValue
EngineRedis 7
Imageredis:7
Port6379
Volume/data
Default Memory512Mi
Default vCPU0.5

On this page