Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.41 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.41 KB

jvm-memcached-tool

This is a practice project to learn how to use Quarkus, the Supersonic Subatomic Java Framework, with Picocli.

original: scripts/memcached-tool

Prerequisite

  • JDK 17

Build

$ ./mvnw clean package

# the below jar is an executable jar. Please rename it if necessary.
$ ls target/memcached-tool.jar
target/memcached-tool.jar

Run

$ java -jar target/memcached-tool.jar
Usage: memcached-tool [-hvV] [--host=<configEndpoint>] [-p=<clusterPort>]
                      [COMMAND]
Simple tool to handle memcached
  -h, --help
      --host=<configEndpoint>
                             Cluster hostname.
                               Default: localhost
  -p, --port=<clusterPort>   Cluster port number.
                               Default: 11211
  -v, --verbose              Enable verbose mode.
  -V, --version              print version information and exit
Commands:
  generate, gen  Generate items on memcached!
  dump
  keys
  stats          Perform stats command
  flush          Flush items on memcached

Development

TBD