Skip to main content

resize

change a cache's size or eviction policy

Change a cache's size, to or from its high-availability twin, or its eviction policy. A smaller size is allowed: keys beyond its memory are evicted, or writes are refused with noeviction.

Usage​

csph cache resize <name|id> [flags]

Options​

Command Specific​

--environment <string>
environment ID
--eviction <string>
allkeys-lru (evict the least recently used keys when memory is full) or noeviction (refuse writes instead)
--instance-type <string>
new size, by name or id (see csph cache instance-types)
--project <string>
project ID

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

  csph cache resize sessions --instance-type "Cache 3 GB"
csph cache resize sessions --eviction noeviction

See also​