Class: Redis::DeprecatedPipeline

Inherits:
Pipeline
  • Object
show all
Defined in:
lib/redis/pipeline.rb

Constant Summary

Constants inherited from Pipeline

Pipeline::REDIS_INTERNAL_PATH, Pipeline::STDLIB_PATH

Instance Attribute Summary

Attributes inherited from Pipeline

#client, #db, #futures

Instance Method Summary collapse

Methods inherited from Pipeline

#call, #call_pipeline, #call_with_timeout, #commands, deprecation_warning, #empty?, #finish, #shutdown?, #timeout, #timeouts, #with_reconnect, #with_reconnect?, #without_reconnect, #without_reconnect?

Constructor Details

#initialize(pipeline) ⇒ DeprecatedPipeline

Returns a new instance of DeprecatedPipeline.


209
210
211
212
# File 'lib/redis/pipeline.rb', line 209

def initialize(pipeline)
  super(pipeline)
  @deprecation_displayed = false
end

Instance Method Details

#__getobj__Object


214
215
216
217
218
219
220
# File 'lib/redis/pipeline.rb', line 214

def __getobj__
  unless @deprecation_displayed
    Pipeline.deprecation_warning("pipelined", Kernel.caller_locations(1, 10))
    @deprecation_displayed = true
  end
  @delegate_dc_obj
end