lredis
lredis copied to clipboard
A redis client for lua
Prevent errors in protocol.read_response from propagating before the current request has been removed from the fifo. Otherwise all other pipelined requests will become deadlocked.
Implement locking around transactions to prevent other coroutines from erroneously injecting commands into the transaction. multi() now returns a transaction object which must be used to issue commands in the...
```lua cq:wrap(function() client:multi() cqueues.sleep(5) client:call('get', 'test') client:exec() end) cq:wrap(function() cqueues.sleep(2) client:ping() end) cq:loop() ``` In this example, the pipelined PING command is erroneously inserted into the MULTI. I have fixed...
@daurnimator I discovered a deadlock issue which is caused by an error that occurs during a pipelined request. I've fixed the issue in this PR #7 This PR causes the...
Add support for XADD / XREAD / XRANGE / XREVRANGE / XLEN ... operations
Hi there, thanks for lredis! Is there currently any preferred pattern to add auto-reconnect capabilities to lredis? This is a feature which all redis lua libraries seem to be lacking,...
redis-url-parsing connect() and HGETALL and HMGET wrappers to return hash entries in a table