ezgh caches update <cache> [flags] [--wait]Change a cache. Only what’s given changes. --parameter sets a parameter and keeps the others; --tag replaces all its tags and --clear-tags removes them. Storage only grows. --standby and --standby=false add and remove the standby. --engine-version upgrades it in place, on its own: on Valkey writes pause for a few seconds and the data stays; on Memcached it’s applied in the maintenance window and the cache starts empty, so --wait waits for that window (raise --wait-timeout, or follow it with ezgh caches operations get). Upgrades are one-way. --wait waits until it’s done and prints it.
Part of ezgh caches.
Examples
ezgh caches update wp-cache --standby --wait
ezgh caches update wp-cache --engine-version 9.1 --waitFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--allowed-source-cidr |
string, repeatable | an IPv4 CIDR that may connect; repeat for more, at most 20; replaces them all | |
--clear-tags |
boolean | remove its tags | |
--deletion-protection |
boolean | refuse deletes (--deletion-protection=false allows them again) |
|
--description |
string | a new description | |
--engine-version |
string | upgrade to this newer version, on its own (one-way) | |
--instance-type |
string | a new gp-1 or gs-1 instance type | |
--maintenance-window |
string | when maintenance happens, ddd:HH:MM-ddd:HH:MM UTC | |
--name |
string | a new name | |
--parameter |
string, repeatable | set an engine parameter, name=value; repeat for more; the others stay | |
--plaintext-port |
boolean | Memcached only: serve port 11212 without TLS (--plaintext-port=false turns it off) |
|
--standby |
boolean | add a standby (--standby=false removes it) |
|
--storage-size-gib |
int | a persistent cache’s larger storage, in GiB | |
--tag |
string, repeatable | a tag, key=value; repeat for more; replaces them all | |
--wait |
boolean | wait until it’s done, and print it then | |
--wait-timeout |
duration | 10m0s |
how long --wait waits |
This command also takes the global flags.