class

RedisMutex::Lock

Inherits Reference < Object

Constructors

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

Instance methods

create_lock_threshold
Source
key=(key : String)
Source
try_to_lock
Source
unlock
Source