No release in over a year
Redis Lua script optimization
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

RedisLuaScript

Gem codecov

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 :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-feature)
  3. Ensure the tests pass (bundle exec rspec)
  4. Commit your changes (git commit -am 'awesome new feature')
  5. Push your branch (git push origin my-feature)
  6. Create a Pull Request