Sha256: 9c8fcbc369a4a49d5e85e4140e55975a7467b4c11b46f1dc2f27f86b6973422f

Contents?: true

Size: 247 Bytes

Versions: 7

Compression:

Stored size: 247 Bytes

Contents

module Modis
  module Transaction
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      def transaction
        Modis.with_connection { |redis| redis.multi { yield(redis) } }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
modis-1.4.2 lib/modis/transaction.rb
modis-1.4.1-java lib/modis/transaction.rb
modis-1.4.1 lib/modis/transaction.rb
modis-1.4.0 lib/modis/transaction.rb
modis-1.3.0 lib/modis/transaction.rb
modis-1.2.0 lib/modis/transaction.rb
modis-1.1.0 lib/modis/transaction.rb