{"repo":"ledgetech/lua-resty-redis-connector","free":true,"listed":false,"github":"https://github.com/ledgetech/lua-resty-redis-connector","clone":"git clone https://github.com/ledgetech/lua-resty-redis-connector.git","description":"Connection utilities for lua-resty-redis","language":"Lua","stars":245,"topics":["lua","luajit","redis","redis-sentinel","openresty","nginx","lua-resty-redis"],"license":null,"category":"databases-storage","readme_excerpt":"lua-resty-redis-connector Connection utilities for lua-resty-redis, making it easy and reliable to connect to Redis hosts, either directly or via Redis Sentinel. Synopsis Quick and simple authenticated connection on localhost to DB 2: More verbose configuration, with timeouts and a default password: Keep all config in a table, to easily create / close connections as needed: connect can be used to override some defaults given in new, which are pertinent to this connection only. DSN format If the params.url field is present then it will be parsed to set the other params. Any manually specified params will override values given in the DSN. Note: this is a behaviour change as of v0.06. Previously, the DSN values would take precedence. Direct Redis connections The format for connecting directly to Redis is: redis://USERNAME:PASSWORD@HOST:PORT/DB The USERNAME , PASSWORD and DB fields are optional, all other components are required. Use of username requires Redis 6.0.0 or newer. Connections via Redis Sentinel When connecting via Redis Sentinel, the format is as follows: sentinel://USERNAME:PASSWORD@MASTER NAME:ROLE/DB Again, USERNAME , PASSWORD and DB are optional. ROLE must be either m or s for master / slave respectively. On versions of Redis newer than 5.0.1, Sentinels can optionally require their own password. If enabled, provide this password in the sentinel password parameter. On Redis 6.2.0 and newer you can pass username using sentinel username parameter. A table of sentinel","default_branch":null,"files":null,"tree":[],"storefront":"/r/ledgetech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ledgetech/lua-resty-redis-connector/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."}