Class: SolidRedis::Client::Pipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/solid_redis/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Pipeline

Returns a new instance of Pipeline.



221
222
223
# File 'lib/solid_redis/client.rb', line 221

def initialize
  @commands = []
end

Instance Attribute Details

#commands ⇒ Object (readonly)

Returns the value of attribute commands.



219
220
221
# File 'lib/solid_redis/client.rb', line 219

def commands
  @commands
end

Instance Method Details

#call(*command) ⇒ Object



225
226
227
228
# File 'lib/solid_redis/client.rb', line 225

def call(*command)
  @commands << command
  nil
end

#call_v(command) ⇒ Object



230
231
232
233
# File 'lib/solid_redis/client.rb', line 230

def call_v(command)
  @commands << command
  nil
end