openresty / openresty/lua-resty-redis
Add luasocket-based redis interface
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2k
- Forks
- 447
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 3
Description
Useful in contexts where the cosocket api is not available - such as init_by_lua.
I used this to load a script into lua once, set a shared memory variable, and then use evalsha instead of sending the much larger script over the wire constantly.
Implementation here: https://github.com/chaoslawful/lua-nginx-module/issues/206#issuecomment-13041467
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing lua-resty-redis interface and the implementation linked in lua-nginx-module issue #206, comment 13041467. Confirm how the luasocket-based interface should support contexts without the cosocket API, including init_by_lua, and verify that the documented evalsha use case works without repeatedly sending the full script.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, redis
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100