Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use pipeline #119

Open
surjur opened this issue Aug 17, 2017 · 9 comments
Open

how to use pipeline #119

surjur opened this issue Aug 17, 2017 · 9 comments
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@surjur
Copy link

surjur commented Aug 17, 2017

this yii2-redis has no pipeline function?

@samdark
Copy link
Member

samdark commented Aug 17, 2017

Please elaborate.

@uncle13th
Copy link

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

@cebe
Copy link
Member

cebe commented Sep 20, 2017

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

@yii-bot
Copy link

yii-bot commented Sep 20, 2017

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.

@Insolita
Copy link

Insolita commented Oct 9, 2017

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

@cebe cebe added this to the 2.0.8 milestone Dec 10, 2017
@cebe cebe added type:enhancement Enhancement and removed status:need more info labels Dec 10, 2017
@cebe cebe modified the milestones: 2.0.8, 2.0.9 Mar 20, 2018
@samdark samdark modified the milestones: 2.0.9, 2.1.0 Sep 23, 2018
@haohetao
Copy link

I need this feature

@bizley bizley added the status:ready for adoption Feel free to implement this issue. label Oct 22, 2020
@jank0918
Copy link

Is that possible

@samdark
Copy link
Member

samdark commented Oct 30, 2020

It isn't currently implemented.

@takeaki
Copy link

takeaki commented Jan 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

10 participants