RedisLuaScript
Optimize Redis script execution through minification and script caching (see evalsha).
Usage
require "redis_lua_script"
redis = Redis.new
script = RedisLuaScript.new("return redis.call('PING')")
script.eval(redis)
Implicit Mode
Use Redis per usual, with optimizations implicitly performed on script evaluations.
require "redis_lua_script/implicit"
redis = Redis.new
redis.eval("return redis.call('PING')")
Contributing
Yes please :)
- Fork it
- Create your feature branch (
git checkout -b my-feature
) - Ensure the tests pass (
bundle exec rspec
) - Commit your changes (
git commit -am 'awesome new feature'
) - Push your branch (
git push origin my-feature
) - Create a Pull Request