Skip to content

Redis-backed mutex, compatible with Ruby's Mutex interface.

Notifications You must be signed in to change notification settings

ecin/redis-mutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis::Mutex

A Redis-backed mutex that is a (almost 100%) complete drop-in for the Mutex class
found in Ruby's standard library.

Differences:
- Redis::Mutex#unlock does not raise ThreadError if the lock hasn't been acquired.
- Redis::Mutex#unlock returns a boolean instead of self.

Plus, Redis::Mutex#refresh is available to renew the expiration of an acquired lock.

About

Redis-backed mutex, compatible with Ruby's Mutex interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages