yii2-redis icon indicating copy to clipboard operation
yii2-redis copied to clipboard

how to use pipeline

Open surjur opened this issue 8 years ago • 9 comments

this yii2-redis has no pipeline function?

surjur avatar Aug 17 '17 01:08 surjur

Please elaborate.

samdark avatar Aug 17 '17 09:08 samdark

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

uncle13th avatar Sep 20 '17 09:09 uncle13th

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

cebe avatar Sep 20 '17 10:09 cebe

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

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

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

yii-bot avatar Sep 20 '17 10:09 yii-bot

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

Insolita avatar Oct 09 '17 12:10 Insolita

I need this feature

haohetao avatar Oct 21 '20 14:10 haohetao

Is that possible

jank0918 avatar Oct 30 '20 10:10 jank0918

It isn't currently implemented.

samdark avatar Oct 30 '20 12:10 samdark

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

takeaki avatar Jan 04 '21 02:01 takeaki