Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
Source
key=
(key :
String
)
Source
run
Source
try_to_lock
Source
unlock
Source