[go: up one dir, main page]

Skip to content

A command line tool providing a distributed lock built on top of Redis

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

boxdot/redlock-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redlock-cli

A command line tool providing a distributed lock built on top of Redis.

Usage:

redlock -s localhost:6379 -l mylock --ttl 60 -- echo foo

This will try to acquire the global lock with the name mylock in Redis for at least 60 seconds. When lock is acquired, the command is executed. The lock is released when the command finishes, or the ttl expires. Additional parameter --timeout specifies for how long we should try to acquire the lock.

This is in particular useful when restricting the number of concurrent jobs in CI.

License

The files src/proto/fileformat.proto and src/proto/osmformat.proto are copies from the [OSM-binary] project and are under the LGPLv3 license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this document by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A command line tool providing a distributed lock built on top of Redis

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages