#98624Redis connect using Socket
Description
The RedisBackend class always uses a port to connect. When you only have redis unix socket you can’t use a port for the redis connection.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 2
-
Stefan Bürk commented and changed status
NewNeeds Feedback 10/16/22, 18:10 -
Benni Mack commented and changed status
Needs FeedbackClosed 04/14/23, 21:23housekeeping: closing this issue due to lack of feedback, Josef, I can re-open the issue, feel free to contact me.
Have you tried to provide the path to the socket as `hostname` ?
The used php extension and thus the Redis class have no dedicated socket file/path argument like for example mysqli and others.
Here, some basic examples to connect from the redis php-extension readme:
The corresponding RedisBackend uses following code to create the native redis client instance:
So I would give it a try to configure the socket name as hostname for the redis backend. ( `hostname` key of the redis configuration ). If that works we may extend the documentation and eventuall labels, but otherwise I guess we do not have to do anything technically about it and it should work that way.
Can you try it and give feedback than ?