0.0
No commit activity in last 3 years
No release in over 3 years
a mongoid 3/moped compatible lock implementation and mixin
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.1
 Project Readme

NAME

mongoid-bolt

INSTALL

gem install mongoid-bolt

SYNOPSIS

  require 'mongoid-bolt'

  Bolt.for(:shared_resource) do
    ioslated!
  end


  class A
    include Mongoid::Document
    include Mongoid::Bolt
  end

  a = A.new

  a.lock!

  a.unlock!

  a.lock do
    isolated!
  end

DESCRIPTION

mongoid-bolt is a concrete lock implementation and mixin.

it is process safe and atomic in a mongoid cluster.