Project

lock-redis

0.0
No commit activity in last 3 years
No release in over 3 years
To lock a key of the Redis, then daemonize. If killed, it will release the key.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0

Runtime

 Project Readme

LockRedis

This is a simple utility, to lock a key of the Redis, then daemonize. If killed, it will release the key.

Installation

Add this line to your application's Gemfile:

gem 'lock-redis'

Usage

pid=$(lock --host redis --db 1 --key lock:startup) # To lock the redis
# then do something threadsafe ...
kill $pid # To unlock the redis