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.
226 227 228 |
# File 'lib/solid_redis/client.rb', line 226 def initialize @commands = [] end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
224 225 226 |
# File 'lib/solid_redis/client.rb', line 224 def commands @commands end |
Instance Method Details
#call(*command) ⇒ Object
230 231 232 233 |
# File 'lib/solid_redis/client.rb', line 230 def call(*command) @commands << command nil end |
#call_v(command) ⇒ Object
235 236 237 238 |
# File 'lib/solid_redis/client.rb', line 235 def call_v(command) @commands << command nil end |