cache
A managed Redis, private to the network.
A managed Redis, private to the project's network.
ackee.ack
ackee 1project "shop" {cloud = "azure"region = "eastus"}service "web" {image = "mcr.microsoft.com/k8se/quickstart:latest"public = true}cache "sessions" {size = "medium"}connect env "web" -> "sessions"
Fields
| Field | Takes | Meaning |
|---|---|---|
| size | "small" | "medium" | "large" default "small" | AWS: cache.t4g.micro, .small, .medium. Google Cloud: 1, 2 or 5 GB, basic tier. Azure: Basic C0, C1, C2. Must be written out. |
Any other field is refused (AK204), and the error names the exact type to declare with node for the setting you wanted.
What it becomes
| Cloud | Becomes |
|---|---|
| AWS | An ElastiCache Redis cluster, one node. |
| Google Cloud | A Memorystore for Redis instance, basic tier. |
| Azure | An Azure Cache for Redis, basic SKU. |
Joins the shared network net: all three clouds.
What a connection hands over
An env connection to a cache gives the consumer these variables, each prefixed by the cache's name in upper case — cache "orders" gives ORDERS_…:
| Cloud | Variables |
|---|---|
| AWS | _HOST, _PORT, _URL |
| Google Cloud | _HOST, _PORT, _URL |
| Azure | _HOST, _PORT, and _PASSWORD through the secrets channel |
Notes
- Replicated or clustered tiers are provider settings: declare the cache with
nodeto choose one.