lib/redis/bitops/sparse_bitmap.rb
# Maybe pipeline/make atomic based on the configuration.
#
Maybe pipeline/make atomic based on the configuration.
Maybe pipeline / make atomic based on the configuration .
def maybe_multi(options = {}, &block)
        current_level = options[:level] or raise "Specify the current transaction level."
        if Redis::Bitops.configuration.transaction_level == current_level
          watched_keys = options[:watch]
          @redis.watch(watched_keys) if watched_keys && watched_keys != []
          @redis.multi(&block)
        else
          block.call
        end
      end
def maybe_multi ( options = { } , & block ) current_level = options [ :level ] or raise "Specify the current transaction level." if Redis :: Bitops . configuration . transaction_level == current_level watched_keys = options [ :watch ] @redis . watch ( watched_keys ) if watched_keys && watched_keys != [ ] @redis . multi ( & block ) else block . call end end
Maybe pipeline/make atomic based on the configuration.
Maybe pipeline / make atomic based on the configuration .
options
<not_specific>
block
<not_specific>