{"repo":"SomajitDey/redis-client","free":true,"listed":false,"github":"https://github.com/SomajitDey/redis-client","clone":"git clone https://github.com/SomajitDey/redis-client.git","description":"Bash scripting library + CLI + Connection-pool","language":"Shell","stars":25,"topics":["redis-client","redis","no-sql","bash","resp-parser","connection-pool"],"license":"LGPL-2.1","category":"databases-storage","readme_excerpt":"Redis Client (Bash) This project consists of 1. redis.bash - a Bash library for Redis containing some useful shell-functions 2. redis-cli - an executable Bash script implementing an interactive Redis console 3. redis-pool - a connection pool for Redis Table of Contents - Redis Client (Bash) - Library usage - Low level tasks - Demo / Example - CLI console - Connection pool - Alternative(s) - Feedback, feature requests, bug report - Contribution - Support / Sponsor - Acknowledgements - License Library usage 1. To use the library functions in your Bash script, source the library first: source 2. Then, create a session using Instead of using options, the host, port, password, database and timeout can also be provided using the respective environment variables: REDIS HOST , REDIS PORT , REDIS AUTH , REDIS DB , REDIS TIMEOUT . The timeout is the interval used by the automatic keepalive service . If keepalive is not required, specify a 0s timeout. The defaults are - Host: localhost ; Port: 6379 ; DB: 0 ; Timeout: 300s. 3. To execute a single Redis command in the server, and get its corresponding response, run: This sends the command to the server and then prints the server response to stderr or stdout, depending on whether the server response data-type (RESP) is \"Error\" or not. The rather trivial OK and PONG responses are not printed for redirected stdout, for developer convenience. redis exec returns after reading exactly one complete RESP response from the server. The read has a 1","default_branch":null,"files":null,"tree":[],"storefront":"/r/SomajitDey","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SomajitDey/redis-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}