Class: Redis::DeprecatedPipeline
- 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
Instance Method Summary collapse
- #__getobj__ ⇒ Object
-
#initialize(pipeline) ⇒ DeprecatedPipeline
constructor
A new instance of DeprecatedPipeline.
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.
191 192 193 194 |
# File 'lib/redis/pipeline.rb', line 191 def initialize(pipeline) super(pipeline) @deprecation_displayed = false end |
Instance Method Details
#__getobj__ ⇒ Object
196 197 198 199 200 201 202 |
# File 'lib/redis/pipeline.rb', line 196 def __getobj__ unless @deprecation_displayed Pipeline.deprecation_warning("pipelined", Kernel.caller_locations(1, 10)) @deprecation_displayed = true end @delegate_dc_obj end |