redlock ~master

Distributed locks with Redis


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Build Status

redlock

Distributed locks with Redis . Implement in dlang by https://redis.io/topics/distlock.

example


import redlock.RedLock;

auto lock = new RedLock("127.0.0.1:6379");
// save locked info
LockedObject obj;
lock.Lock("key" , obj);
//do some thing
lock.Unlock(obj);


Dependencies:
dredis
Versions:
0.0.2 2018-Apr-27
0.0.1 2018-Mar-13
~master 2018-May-24
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 21 downloads total

Score:
0.9
Short URL:
redlock.dub.pm