module SimpleRedisLock
@author Nitzan Aviram Locks a critical code using redis SET NX|EX/PX, it is fast and simple.
Constants
- VERSION
Public Class Methods
create(redis = Redis.new)
click to toggle source
# File lib/simple_redis_lock.rb, line 10 def self.create(redis = Redis.new) SimpleLock.new(redis) end