Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

distributed-lock-manager

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distributed-lock-manager

The DLM maintains a list of system resources and provides locking mechanisms to control allocation and modification of resources.

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Distributed Lock Manager

The DLM maintains a list of system resources and provides locking mechanisms to control allocation and modification of resources.

Installation

npm install -g distributed-lock-manager

Usage

dlm-server --httpPort 5000 --tcpPort 5001 --maximumWaitForAcquireInMilliseconds 2000 --timeoutInMiliseconds 5000

Screenshot

screenshot

Commands

Acquire

This command will try to acquire the lock for the given name and return TRUE<newline> when successfully acquired and FALSE<newline> when not acquired.

acquire <name><newline>

Release

This command will release the lock for the given name and return OK<newline>.

release <name><newline>

Wait Acquire

This command is exactly the same as the acquire command except that it will wait if it could not acquire the lock immediately.

waitAcquire <name><newline>

Client Libraries

  • DistributedLockManager.NET (.NET Core)
  • distributed-lock-manager-node (node.js)

Performance

Acquire

  • Mean: 2.907 ms
  • Median: 3 ms
  • Standard Deviation: 1.4595
  • 95th Percentile: 5 ms

Release

  • Mean: 2.829 ms
  • Median: 3 ms
  • Standard Deviation: 1.5325
  • 95th Percentile: 5 ms

FAQs

Package last updated on 27 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc