hunt-redis ~master (2021-11-19T08:51:56Z)
Home
Dub
Repo
RedisLock
hunt
redis
RedisLock
https://redis.io/topics/distlock
https://github.com/abelaska/jedis-lock
class
RedisLock {
this
(Redis client, string lockKey, int delaytime, float clockFactor);
this
(Redis[] client, string lockKey, int delaytime, float clockFactor);
bool
lock
(uint timeout, uint ttl);
void
unlock
();
immutable
size_t
_quornum
;
immutable
size_t
_delaytime
;
immutable
float
_clockFactor
;
static immutable
string
_prefix
;
}
Constructors
this
this
(Redis client, string lockKey, int delaytime, float clockFactor)
Undocumented in source.
this
this
(Redis[] client, string lockKey, int delaytime, float clockFactor)
Undocumented in source.
Members
Functions
lock
bool
lock
(uint timeout, uint ttl)
Undocumented in source. Be warned that the author may not have intended to support it.
unlock
void
unlock
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static variables
_prefix
string
_prefix
;
Undocumented in source.
Variables
_clockFactor
float
_clockFactor
;
Undocumented in source.
_delaytime
size_t
_delaytime
;
Undocumented in source.
_quornum
size_t
_quornum
;
Undocumented in source.
Meta
Source
See Implementation
hunt
redis
RedisLock
classes
RedisLock
structs
LockedObject
https://redis.io/topics/distlock
https://github.com/abelaska/jedis-lock