Class: SolidRedis::Client::Pipeline
- Inherits:
-
Object
- Object
- SolidRedis::Client::Pipeline
- Defined in:
- lib/solid_redis/client.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
- #call(*command) ⇒ Object
- #call_v(command) ⇒ Object
-
#initialize ⇒ Pipeline
constructor
A new instance of Pipeline.
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 |