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:
template_deploy(
"template": "redis",
"name": "my-cache"
){
"services": [object Object],
"outputs": [object Object]
}Or via the CLI:
ink template deploy redis --name my-cacheNo 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:6379Client libraries
Node.js
npm install ioredisimport 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 redisimport redis
r = redis.Redis(host="my-cache", port=6379)
r.set("key", "value")
value = r.get("key")Specs
| Property | Value |
|---|---|
| Engine | Redis 7 |
| Image | redis:7 |
| Port | 6379 |
| Volume | /data |
| Default Memory | 512Mi |
| Default vCPU | 0.5 |