class

Redis::PipelineApi

Inherits Redis::CommandExecution::FutureOriented / Redis::Commands / Reference / Object

API for sending commands in pipelined mode.

Used in Redis#pipelined.

Example:

redis.pipelined do |pipeline|
  pipeline.set("foo1", "first")
  pipeline.set("foo2", "second")
end

In this example, the pipeline object passed to the block is a PipelineApi object.

Constructors

new(strategy : Redis::Strategy::Pipeline, namespace : String = "")
Source