Caches
SKE provisions managed cache instances in your cloud account. On AWS, caches run on ElastiCache. On GCP, they run on Memorystore.
Creating a cache
Section titled “Creating a cache”ske cache:create \ --name my-cache \ --engine redis \ --tier small \ --network my-network✓ Cache creation started (job #16)⠋ Provisioning...A cache must be attached to a network — create the network first (see Networks).
Supported engines
Section titled “Supported engines”| Engine | AWS (ElastiCache) | GCP (Memorystore) |
|---|---|---|
redis |
Redis 7.x | Redis 7.x |
valkey |
Valkey 7.x | — |
memcached |
— | Memcached |
Valkey is AWS-only. Memcached is GCP-only. Redis is available on both providers.
| Tier | Description | Use case |
|---|---|---|
micro |
Minimal memory | Development |
small |
1.5 GB | Staging |
medium |
6 GB | Small production |
large |
13 GB | Production |
xlarge |
26 GB | Large production |
Serverless caches
Section titled “Serverless caches”For variable workloads, use serverless mode (AWS only):
ske cache:create \ --name my-cache \ --engine redis \ --serverless \ --min-ecpu 1000 \ --max-ecpu 100000 \ --network my-networkServerless ElastiCache scales compute and memory automatically based on demand.
Configuration options
Section titled “Configuration options”| Option | Description | Default |
|---|---|---|
--engine |
Cache engine | redis |
--tier |
Instance size | small |
--serverless |
Enable serverless scaling (AWS) | false |
--min-ecpu |
Minimum eCPUs (serverless) | 1000 |
--max-ecpu |
Maximum eCPUs (serverless) | 100000 |
--snapshot-retention |
Snapshot retention in days | 0 |
--multi-az |
Enable multi-AZ deployment | false |
Connecting to a cache
Section titled “Connecting to a cache”When you attach a cache to an environment, SKE sets:
CACHE_HOST=my-cache.abc123.cache.amazonaws.comCACHE_PORT=6379Your Laravel config/cache.php and config/database.php pick these up through the REDIS_HOST / CACHE_HOST environment variables.
Private networking
Section titled “Private networking”Caches are provisioned inside the VPC of the associated network. They are reachable from your application but not from the public internet. This is by design — caches should never be publicly accessible.
Managing caches
Section titled “Managing caches”# List cachesske cache:list
# Show cache detailsske cache:show my-cache
# Delete a cacheske cache:delete my-cache