Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.25 KB

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.