GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cache-cli/docs at main · ubgo/cache-cli

Expand file tree

/

docs

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

docs

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
commands.md
commands.md
 
 
flags.md
flags.md
 
 

README.md

Outline

cache-cli — feature cookbook

Exhaustive, example-driven reference for the cache-cli command: every subcommand, every flag, the exit-code and stream contracts, and scripting use cases.

cache-cli is a scriptable inspector for a github.com/ubgo/cache Redis backend. It connects with cache-redis, optionally applies a cache.Namespaced prefix, and exits with meaningful codes.

Install / run:

go install github.com/ubgo/cache-cli@latest
cache-cli -addr localhost:6379 stats

Pages

  • Commands — get, set, del, stats, keys, help.
  • Flags & contracts — -addr, -ns, -ttl, -json, exit codes, stdout/stderr split.

Capability matrix

Surface Kind Page
get <key> command Commands
set <key> <value> command Commands
del <key> command Commands
stats command Commands
keys [prefix] command Commands
help / -h / --help command Commands
-addr string flag Flags
-ns string flag Flags
-ttl duration flag Flags
-json flag Flags
exit codes 0 / 1 / 2 contract Flags
stdout vs stderr contract Flags

Exit-code contract (relied on by scripts — do not change)

Code Meaning
0 success (includes del of an absent key, stats, help)
1 runtime/backend error, or a get miss (cache.ErrNotFound)
2 usage error: bad flags, no command, wrong arg count, unknown command
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.