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, #materialized_futures, #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.


224
225
226
227
# File 'lib/redis/pipeline.rb', line 224

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

Instance Method Details

#__getobj__Object


229
230
231
232
233
234
235
# File 'lib/redis/pipeline.rb', line 229

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