class RedisClient::Decorator::Client

Public Class Methods

new(_client) click to toggle source
# File lib/redis_client/decorator.rb, line 40
def initialize(_client)
  super
  @_pipeline_class = self.class::Pipeline
end

Public Instance Methods

multi(**kwargs) { |_pipeline_class| ... } click to toggle source
# File lib/redis_client/decorator.rb, line 54
def multi(**kwargs)
  @client.multi(**kwargs) { |p| yield @_pipeline_class.new(p) }
end
pipelined(exception: true) { |_pipeline_class| ... } click to toggle source
# File lib/redis_client/decorator.rb, line 50
def pipelined(exception: true)
  @client.pipelined(exception: exception) { |p| yield @_pipeline_class.new(p) }
end
with(*args) { |class.new(c)| ... } click to toggle source
# File lib/redis_client/decorator.rb, line 45
def with(*args)
  @client.with(*args) { |c| yield self.class.new(c) }
end