# Redis

Managed Redis instances.

```hcl
redis "cache" {}
```

Reference redis attributes in env blocks:

```hcl
service "api" {
  build = build.api
  command = "./api"

  endpoint {
    public = true
  }

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

redis "cache" {}
```

## Available redis attributes

- `url` - Full connection string (e.g., `redis://:password@host:6379`)
- `host` - Redis host
- `port` - Redis port
- `password` - Redis password for authentication
