class RedisMutex::Lock

Defined in:

redis_mutex/lock.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : String, max_locking_time : Time::Span = RedisMutex::MAX_LOCKING_TIME, redis : Redis = Redis.new) #

[View source]

Instance Method Detail

def create_lock_threshold #

[View source]
def key : String #

[View source]
def key=(key : String) #

[View source]
def run(&block) #

[View source]
def try_to_lock #

[View source]
def unlock #

[View source]