class RedisClient::Decorator::Client
Public Class Methods
Source
# File lib/redis_client/decorator.rb, line 40 def initialize(_client) super @_pipeline_class = self.class::Pipeline end
Calls superclass method
RedisClient::Decorator::CommandsMixin::new
Public Instance Methods
Source
# File lib/redis_client/decorator.rb, line 54 def multi(**kwargs) @client.multi(**kwargs) { |p| yield @_pipeline_class.new(p) } end
Source
# File lib/redis_client/decorator.rb, line 50 def pipelined(exception: true) @client.pipelined(exception: exception) { |p| yield @_pipeline_class.new(p) } end
Source
# File lib/redis_client/decorator.rb, line 45 def with(*args) @client.with(*args) { |c| yield self.class.new(c) } end