yiisoft / yii2-redis

Yii 2 Redis extension.
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
451 stars 184 forks source link

how to use pipeline #119

Open surjur opened 7 years ago

surjur commented 7 years ago

this yii2-redis has no pipeline function?

samdark commented 7 years ago

Please elaborate.

uncle13th commented 7 years ago

the pipeline command is not in the $redisCommands array of the connection.php file, my question is how can i use pipeline command?

cebe commented 7 years ago

I can not find "pipeline" on https://redis.io/commands, please refer to the redis documentation about it.

yii-bot commented 7 years ago

Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

Insolita commented 7 years ago

https://redis.io/topics/pipelining

Pipelining VS Scripting Using Redis scripting (available in Redis version 2.6 or greater) a number of use cases for pipelining can be addressed more efficiently using scripts that perform a lot of the work needed at the server side. A big advantage of scripting is that it is able to both read and write data with minimal latency, making operations like read, compute, write very fast (pipelining can't help in this scenario since the client needs the reply of the read command before it can call the write command). Sometimes the application may also want to send EVAL or EVALSHA commands in a pipeline. This is entirely possible and Redis explicitly supports it with the SCRIPT LOAD command (it guarantees that EVALSHA can be called without the risk of failing).

Realization in Predis https://github.com/nrk/predis/blob/v1.1/examples/pipelining_commands.php https://github.com/nrk/predis/tree/v1.1/src/Pipeline

haohetao commented 4 years ago

I need this feature

jank0918 commented 4 years ago

Is that possible

samdark commented 4 years ago

It isn't currently implemented.

takeaki commented 3 years ago

Pipeline is an essential feature for many processes. I would like to see it added.