Skip to main content
Managed Redis-compatible cache instances. Backed by Valkey, the BSD-3-Clause open-source fork of Redis 7.2, so it works with any Redis client (ioredis, node-redis, redis-cli).
specific.hcl
service "api" {
  build = build.api
  command = "./api"

  endpoint {
    public = true
  }

  env = {
    REDIS_URL = redis.cache.url
  }
}

redis "cache" {}

Connection attributes

AttributeDescription
urlFull connection string (for example, redis://:password@host:6379).
hostRedis host.
portRedis port.
passwordRedis password.

Local development and production

During specific dev, a local Valkey instance runs automatically. In production, Specific provisions a managed instance; the same redis.* references resolve to it, with no code changes.