A CLI on top of the Aeron Cache REST API.
brew tap bhf/aeron-cache-cli
brew install aeron-cache-cliBuilt in Rust 🦀 using:
By default, the CLI assumes that your backend cache service is reachable at http://localhost:7070/api/v1. If you need to override the API base URL, use the --api-url flag or the AERON_CACHE_API_URL environment variable.
It exposes the following commands:
create <name>: Create a new cachedelete <name>: Delete a cacheget-cache <name>: Get all items from a cacheclear-cache <name>: Clear all items from a cacheinsert <name> <key> <value>: Insert an item into a cacheinsert-timed <name> <key> <value> <ttl>: Insert an item with a time-to-live (milliseconds) into a cacheget <name> <key>: Get an item from a cacheremove <name> <key>: Remove an item from a cachecancel-removal <name> <key>: Cancel a scheduled removal of an itemlist-caches: List all available caches and their item countstats: Get global cache statistics
create-counter-cache <name>: Create a new counter cachedelete-counter-cache <name>: Delete a counter cacheget-counter-cache <name>: Get all counters from a counter cacheclear-counter-cache <name>: Clear all counters from a counter cacheput-counter <name> <key> <value>: Put a counter into a counter cacheput-timed-counter <name> <key> <value> <ttl>: Put a counter with a time-to-live (milliseconds) into a counter cacheget-counter <name> <key>: Get a single counter from a counter cachedelete-counter <name> <key>: Delete a single counter from a counter cacheincrement-counter <name> <key> [amount]: Increment a counter (defaults to 1)decrement-counter <name> <key> [amount]: Decrement a counter (defaults to 1)set-counter <name> <key> <value>: Set a counter to a given valuecancel-counter-removal <name> <key>: Cancel a scheduled removal of a counterlist-counter-caches: List all available counter caches and their item countcounter-stats: Get global counter cache statistics
Use the --help flag anytime for more information.
Example: cargo run -- create mycache
Example: cargo run -- --api-url http://otherhost:7070/api/v1 stats
