Connecting to a Redis instance
suggest changeAssuming a default server running on localhost with the default port, the command to connect to that Redis server would be:
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents