GithubHelp home page GithubHelp logo

boxdot / redlock-cli Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 28 KB

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

License: Apache License 2.0

Rust 94.46% Shell 5.54%
redlock cli redis

redlock-cli's Introduction

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.

redlock-cli's People

Contributors

boxdot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

diegopastor

redlock-cli's Issues

Sentinel support

Thank you for creating this great tool! I'd like to connect to a redis sentinel set of hosts instead of a single instance as documented here.
I think the best approach would be to either add another option which takes a list of sentinel hosts or use the existing -s option and modify it's syntax by allowing e.g. url style args as sentinel://[user:pw]@sentinelhost:5000,anotherhost:5000.

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.