Sha256: 176055a36e6fd9ba1f857d14738e0e905b9d482fcd5402ad9cf370a1f8264009

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

class ActiveRedisDB::Transaction < ActiveRedisDB::Base
  class << self

    def discard
      client.discard
    end

    def exec
      client.exec
    end

    def multi(&block)
      client.multi(&block)
    end

    def watch(*args)
      client.watch(args)
    end

    def unwatch
      client.unwatch
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_redis_db-1.1.0 lib/active_redis_db/transaction.rb
active_redis_db-1.0.2 lib/active_redis_db/transaction.rb
active_redis_db-1.0.1 lib/active_redis_db/transaction.rb
active_redis_db-1.0.0 lib/active_redis_db/transaction.rb