Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Support connecting to a Redis socket #7

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

stottsan
Copy link

@stottsan stottsan commented Apr 7, 2015

We wanted the option to connect to a Redis socket, in addition to the TCP port. Defaults remain the same, and passing in an array with 'host' and 'port' set still works, but now you can pass in 'socket' and connect to the socket.

Example:

$redis_server = array( 'socket' => '/tmp/redis.sock' );

Hopefully someone else finds this useful, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant