Need help with
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

227 Stars 91 Forks 33 Commits 11 Opened issues


Primitive redis client written entirely in Bash

Services available


Need anything else?

Contributors list is a primitive Redis client, written entirely in Bash. It allows you to read/write keys and sets from redis as if they were regular Bash variables.


By default reads input from stdin and interprets it as a variable or array (if -a is used). To avoid setting redis hostname and port number with each command, you can export REDISHOST and REDISPORT variables.

./ [-a] [-g ] [-p ] [-H ] [-P ]

-a              : Tells the script that we are working with arrays, instead of regular variables.
-r <min>    : When used with -a, defines the range of elements to get from the array. Default is all (0,-1).
-g <name>       : Get the variable/array specified by <name> and output it to stdout.
-s <name>        : Set the variable/array specified by <name> with the input from stdin.
-p <password>   : Use "AUTH <password>" before running the SET/GET command to authenticate to redis.
-H <hostname>   : Specify a custom hostname to connect to. Default is localhost.
-d <number>   : Specify a custom database number from range 0-15\. Default is 0
-P <port>       : Specify a custom port to connect to. Default is 6379.


$ echo "this is a variable" | ./ -s testvar
$ ./ -g testvar
this is a variable
$ echo red green blue | ./ -as Colors
$ ./ -ag Colors



We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.