-
-
Notifications
You must be signed in to change notification settings - Fork 453
(P)redis persistent / pooled connections #689
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
Comments
Hello, I'll implement it in the 7.1 release (around end of summer), meanwhile you can pass a custom Predis/Redis instance to Phpfastcache as specified in the Uncyclo: Cheers, |
Ok, it's great to know it will be implemented! Thanks for your help and quick response, |
Redis driver also support custom client ;) |
But redis client won't use persistent connection if phpfastcache doesn't call pconnect() instead the "normal" connect(), so that's why I'll wait for your new release. |
Not sure you got the principle of "custom client" 😅 |
With predis client I understand that the custom client will work with persistent connections, as it's a matter of configuration, I'll create the custom client passing it the persistent parameter with 1 value and voila! the client will reuse / persist the connection. I've got it! |
You pass the object fully instanciated + connected ofc ! Read the wiki
please :(
…On Mon, Jun 10, 2019, 3:17 PM marcos-guerrero ***@***.***> wrote:
With predis client I understand that the custom client will work with
persistent connections, as it's a matter of configuration, I'll create the
custom client passing it the persistent parameter with 1 value and voila!
the client will reuse / persist the connection. I've got it!
but... with the redis client it's not a matter of configuration, it a
matter of calling pconnect() method instead connect() method... so, how is
it possible to make PFC aware of it? PFC is going to call connect() ... or
should I pass to PFC the custom client already "pconnected"?
Thank you for help me to fully understand the custom client concept!
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#689?email_source=notifications&email_token=AAKFGZYSOCDDEX6DLPVCYRTPZZH6HA5CNFSM4HWSCKL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJ3E3Q#issuecomment-500413038>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKFGZ7GJ7JF5USV25CVNRDPZZH6HANCNFSM4HWSCKLQ>
.
|
Sorry! You're right, my fault for not re-read the manual. |
Planned for 7.1.x |
Hello!
It would be great if phpfastcache allows us to use connection pooling feature available on (P)redis
persistent [boolean - default: false] :Specifies if the underlying connection resource should be left open when a script ends its lifecycle.
Description: Connects to a Redis instance or reuse a connection already established with pconnect/popen.
Thank you for taking it into consideration
Kind regards
The text was updated successfully, but these errors were encountered: