Skip to content

Feedback: SET -- Lock implementation #947

@AmrSaber

Description

@AmrSaber

Page https://redis.io/docs/latest/commands/set/

Hello, I implemented the lock that you proposed in the docs in this page as an npm package for JS. It is based on SET command and its NX and PX options.

Key features:

  • Simple implementation of distributed locks
  • Built-in timeout and failure handling mechanisms
  • Efficient lock release notification using Pub/Sub
  • Full TypeScript support
  • Comprehensive documentation and examples
  • Active maintenance with 100% test coverage

This is the npm package: https://www.npmjs.com/package/simple-redis-mutex
And this is the project's Github repo: https://github.com/AmrSaber/simple-redis-mutex

I was wondering if you could add a link to my implementation/package in the docs page.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions