RedisGreen Lua Script Library
HTML Lua
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
raw
CONTRIBUTORS.md
LICENSE
README.md
hgetsmembers.html
hincrbyex.html
hmsetnx.html
incrbyex.html
ratelimit.html
runningavg.html
sismembermulti.html
smemhashes.html
zpop.html

README.md

lua library

A collection of public domain Redis Lua scripts for your use or reference.

Running

All of these scripts can be loaded and run using EVAL and EVALSHA. See the EVAL docs for specifics on how this works, or find more details in this blog post.

Thanks

Many of the examples this repository started with were taken from EVALSHA.com. Special thanks to its creator, Aaron Blohowiak, who created a tool to facilitate the sharing of Lua scripts for Redis.

Contributing

Contributions are very welcome, and will be shared with attribution. Please review the guidelines below when you decide to contribute.

Pull Requests

  • There are a few required fields in the header, be sure to fill those out
  • If you do not want to claim authorship, specify 'public domain' as the author.
  • Include concise, repeatable examples in your documentation whenever possible.
  • Include a raw copy of your script in the raw directory, with the name SHA.lua