hxnodejs-redislock

Externs for the redislock NPM module
https://github.com/proletariatgames/hxnodejs-redislock

To install, run:

haxelib install hxnodejs-redislock 1.2.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Haxe/hxnodejs externs for the redislock npm library

Tested using redislock version 1.2.0

Example:

import js.npm.Redislock;

var client = js.npm.Redis.createClient();
var lock = RedisLock.acquire(client, {
  timeout: 20000,
  retries: 3,
  delay: 100
});

lock.acquire('app:feature:lock", function(err) {
  // if (err != null) failed to acquire lock
  
  lock.release(function(err) {
    // if (err != null) failed to release lock
  });
}
Contributors
waneck
lpetre
Proletariat
danogles
Version
1.2.0
Published
2 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github