Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.62 KB

File metadata and controls

43 lines (29 loc) · 1.62 KB

Aeron Cache CLI

img.png

CI

A CLI on top of the Aeron Cache REST API.

brew tap bhf/aeron-cache-cli
brew install aeron-cache-cli

Built in Rust 🦀 using:

asciinema demo

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.

Available commands

It exposes the following commands:

  • create <name>: Create a new cache
  • delete <name>: Delete a cache
  • get-cache <name>: Get all items from a cache
  • clear-cache <name>: Clear all items from a cache
  • insert <name> <key> <value>: Insert an item into a cache
  • get <name> <key>: Get an item from a cache
  • remove <name> <key>: Remove an item from a cache
  • list-caches: List all available caches and their item count
  • stats: Get global 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