Skip to content

cooperhewitt/redis-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

redis-tools

Tools. For doing stuff with Redis.

bin

info

Print information about Redis's current state to STDOUT. If no keys are specificed then all keys(and their values) are displayed.

For example:

$> info <key1> <key2> ...

publish

Publish one or more messages to a PubSub channel.

$> publish -h
Usage: publish [options]

Options:
  -h, --help   show this help message and exit
  --host=HOST  The host of the Redis server to connect to
  --port=PORT  The port of the Redis server to connect to
  --json       Serialize all input as JSON before publishing (default is
               False)

For example:

$> publish <channel> <msg1> <msg2> ...

This should be taught to read from STDIN.

subscribe

Subscribe to a PubSub channel and print each message received to STDOUT.

$> subscribe -h
Usage: subscribe [options]

Options:
  -h, --help   show this help message and exit
  --host=HOST  The host of the Redis server to connect to
  --port=PORT  The port of the Redis server to connect to

For example

$> subscribe <channel>

See also

About

Tools. For doing stuff with Redis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%