amphp/redis

Modify The timeout

glowdan opened this issue · 6 comments

As default, the timeout has set to 1000, Hear , Can I change it on the begining?

I'll add an option.

And does the amp support 'STREAM_CLIENT_PERSISTENT' for persistent connection?

No idea, I've never tried it. You'll have to try yourself.

I don't think so, but how does this relate to this issue?

You can now pass a timeout in the connection URI: tcp://localhost:6379?timeout=3000. Please test it, I'll tag a new version afterwards.

Thank you for your excellence code.