Sha256: 2dbd049b6e679a160f4f1d2e9e16c7263693c569e93798c6980d4ec06e2afef0

Contents?: true

Size: 517 Bytes

Versions: 15

Compression:

Stored size: 517 Bytes

Contents

require_relative "generic"

module Railjet
  module Repository
    class Redis < Generic
      self.type = :redis

      module RepositoryMethods
        def get(key)
          redis.get(key)
        end

        def set(key, val)
          redis.set(key, val)
        end

        def exists?(key)
          redis.exists(key)
        end

        def transaction(&block)
          redis.multi(&block)
        end

        def pipeline(&block)
          redis.pipelined(&block)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
railjet-4.0.0 lib/railjet/repository/redis.rb
railjet-3.5.0 lib/railjet/repository/redis.rb
railjet-3.4.0 lib/railjet/repository/redis.rb
railjet-3.3.0 lib/railjet/repository/redis.rb
railjet-3.2.0 lib/railjet/repository/redis.rb
railjet-3.1.0 lib/railjet/repository/redis.rb
railjet-3.0.0 lib/railjet/repository/redis.rb
railjet-2.1.1 lib/railjet/repository/redis.rb
railjet-2.1 lib/railjet/repository/redis.rb
railjet-2.0 lib/railjet/repository/redis.rb
railjet-2.0.pre4 lib/railjet/repository/redis.rb
railjet-2.0.pre3 lib/railjet/repository/redis.rb
railjet-2.0.pre2 lib/railjet/repository/redis.rb
railjet-2.0.pre1 lib/railjet/repository/redis.rb
railjet-2.0.pre lib/railjet/repository/redis.rb