From fd97cd1bad935cd3cc2dee360845ea7856b76c6d Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Thu, 19 May 2011 12:44:47 +0200 Subject: [PATCH] Update the FAQ with details on the missing support for transparent (de)serialization of values. --- FAQ.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FAQ.markdown b/FAQ.markdown index 5a5b6366..4c83a3da 100644 --- a/FAQ.markdown +++ b/FAQ.markdown @@ -46,3 +46,13 @@ generates a single [Phar archive](http://www.php.net/manual/en/intro.phar.php) o Yes. Obviously, persistent connections actually work when using PHP configured as a persistent process that gets recycled between requests (see [PHP-FPM](http://php-fpm.org/)). + + +### Does Predis support transparent (de)serialization of values? ### + +No, and it will not ever do that for you by default. The reason behind this decision is that serialization +is usually something that developers prefer to customize depending on their needs and can not be easily +generalized when using Redis because of the many possible access patterns for the data. This does not +mean that it is impossible to have such a feature, you can leverage Predis' extensibility to define your +own serialization-aware commands. See http://github.com/nrk/predis/issues/29#issuecomment-1202624 for more +details on how to implement such a feature with a practical example.