Skip to content

Prints one entry of a Redis Stream, randomly or user-defined

Notifications You must be signed in to change notification settings

larskluge/rsone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsone

Prints one entry of a Redis Stream to stdout, randomly or user-defined.

Usage

rsone <stream> [<key>] [<field>]

If no key is defined an entry is randomly chosen. If no field is defined all fields and values are printed.

First the location of a value is printed to stderr (stream, key, and field) then the value to stdout.

Example

rsone foo | jq
# foo 123 bar
# {
#   "baz": 42
# }

About

Prints one entry of a Redis Stream, randomly or user-defined

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published