Ways to use Redis database from PHP


On the Remi’s blog a small comparison of the various solutions to use a Redis database from PHP on Linux, all tested on Fedora 25 but should work on RHEL, CentOS or any other linux distribution. Remi tested redis extension, Predis library, phpiredis extension, and Predis library with phpiredis extension. The conclusion is pretty interesting :

I will be tempted to prefer the phpiredis extension when speed is the main priority, and the Predis library for code beauty.

Remi plan to help to the phpiredis extension author so a version can be published soon, preferably on PECL forge, to give it more visibility. By compiling results from different tests we can have something like :


Please enter your comment!
Please enter your name here