From d6685a424ad863df46917b73f8b30a3189a2f0d6 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sat, 9 Feb 2013 10:11:16 +0100 Subject: [PATCH] Update FAQ. --- FAQ.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/FAQ.md b/FAQ.md index 681f4258..41e576a6 100644 --- a/FAQ.md +++ b/FAQ.md @@ -126,12 +126,17 @@ to how your application will use Redis. Fair enough, but there is actually an option for you if you need even more speed and it consists on installing __[phpiredis](http://github.com/nrk/phpiredis)__ (note the additional _i_ in the name) and let Predis using it. __phpiredis__ is a C-based extension that wraps __hiredis__ (the official -Redis C client library) with a thin layer that exposes its features to PHP. You will now get the -benefits of a faster protocol parser just by adding a single line of code in your application: +Redis C client library) with a thin layer that exposes its features to PHP. You can choose between +two different connection backend classes: `Predis\Connection\PhpiredisConnection` (it depends on the +`socket` extension) and `Predis\Connection\PhpiredisStreamConnection` (it uses PHP's native streams). +You will now get the benefits of a faster protocol parser just by adding a couple of lines of code: ```php $client = new Predis\Client('tcp://127.0.0.1', array( - 'connections' => array('tcp' => 'Predis\Connection\PhpiredisConnection') + 'connections' => array( + 'tcp' => 'Predis\Connection\PhpiredisConnection', + 'unix' => 'Predis\Connection\PhpiredisConnection', + ), )); ```