Class: Redis::DeprecatedMulti

Inherits:
Pipeline::Multi 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::Multi

#commands, #finish, #timeouts

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) ⇒ DeprecatedMulti

Returns a new instance of DeprecatedMulti.



206
207
208
209
# File 'lib/redis/pipeline.rb', line 206

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

Instance Method Details

#__getobj__Object



211
212
213
214
215
216
217
# File 'lib/redis/pipeline.rb', line 211

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