by Birkir A. Barkarson <[email protected]>
A rails plugin proving an abstract distributed mutex along with a MySQL implementation that uses mysql named locks. Others distributed locks using Memcached etc could be implemented using the same framework.
git clone git://github.com/birkirb/distributed_mutex.git cd distributed_mutex rake install
script/plugin install git://github.com/birkirb/distributed_mutex.git
gem install distributed_mutex
To add the plugin to your rails project, add the following to your config/environments.rb:
config.gem(:distributed_mutex)
Copy spec/config/database.stub to spec/config/database.yml and edit as needed for your mysql installation.
gem install bundler bundle install rake spec
- Author
-
Birkir A. Barkarson <[email protected]>
- Copyright
-
Copyright © 2009
- License
-
MIT License