You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,12 @@ Error handling
60
60
61
61
phpredis throws a `RedisException` object if it can't reach the Redis server. That can happen in case of connectivity issues, if the Redis service is down, or if the redis host is overloaded. In any other problematic case that does not involve an unreachable server (such as a key not existing, an invalid command, etc), phpredis will return `FALSE`.
62
62
63
+
Igbinary
64
+
==============
65
+
66
+
phpredis supports Igbinary serialization when configured with `--enable-redis-igbinary`. Igbinary can be installed from PECL: `sudo pecl install igbinary`. Igbinary is much more efficient than the standard PHP `serialize()`.
67
+
68
+
63
69
Methods
64
70
=========
65
71
@@ -151,7 +157,7 @@ Set client option.
151
157
<pre>
152
158
$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE); // don't serialize data
153
159
$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP); // use built-in serialize/unserialize
154
-
$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_IGBINARY); // use igBinary serialize/unserialize
160
+
$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_IGBINARY); // use Igbinary serialize/unserialize, only if enabled in `.configure` script.
155
161
156
162
$redis->setOption(Redis::OPT_PREFIX, 'myAppName:'); // use custom prefix on all keys
0 commit comments