diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 0027a533368..2290df8b52b 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -922,6 +922,30 @@ $CONFIG = array( //array('other.host.local', 11211), ), +/** + * Connection options for memcached, see http://apprize.info/php/scaling/15.html + */ +'memcached_options' => array( + // Set timeouts to 50ms + \Memcached::OPT_CONNECT_TIMEOUT => 50, + \Memcached::OPT_RETRY_TIMEOUT => 50, + \Memcached::OPT_SEND_TIMEOUT => 50, + \Memcached::OPT_RECV_TIMEOUT => 50, + \Memcached::OPT_POLL_TIMEOUT => 50, + + // Enable compression + \Memcached::OPT_COMPRESSION => true, + + // Turn on consistent hashing + \Memcached::OPT_LIBKETAMA_COMPATIBLE => true, + + // Enable Binary Protocol + \Memcached::OPT_BINARY_PROTOCOL => true, + + // Binary serializer vill be enabled if the igbinary PECL module is available + //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY, +), + /** * Location of the cache folder, defaults to ``data/$user/cache`` where |