Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxdot/redlock-cli
A command line tool providing a distributed lock built on top of Redis
https://github.com/boxdot/redlock-cli
cli redis redlock
Last synced: 30 days ago
JSON representation
A command line tool providing a distributed lock built on top of Redis
- Host: GitHub
- URL: https://github.com/boxdot/redlock-cli
- Owner: boxdot
- License: apache-2.0
- Created: 2019-10-30T17:25:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T17:18:08.000Z (over 2 years ago)
- Last Synced: 2024-10-10T06:37:49.425Z (about 1 month ago)
- Topics: cli, redis, redlock
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# redlock-cli
A command line tool providing a [distributed lock] built on top of Redis.
Usage:
```shell
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
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT License ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)The files [src/proto/fileformat.proto](src/proto/fileformat.proto) and
[src/proto/osmformat.proto](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.[distributed lock]: https://redis.io/topics/distlock