From 363e9667ececca66a223934ded569425abd34cdf Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Wed, 10 Dec 2014 12:24:20 +0100 Subject: Add Redis cache implementation, prefer over memcached, tests & config sample --- config/config.sample.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'config/config.sample.php') diff --git a/config/config.sample.php b/config/config.sample.php index 791ffa3df90..35e3f6ce5f1 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -749,9 +749,21 @@ $CONFIG = array( */ 'cipher' => 'AES-256-CFB', + +/** + * Connection details for redis to use for memory caching. + * Redis is only used if other memory cache options (xcache, apc, apcu) are + * not available. + */ +'redis' => array( + 'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock' + 'port' => 6379, + 'timeout' => 0.0 +), + /** * Server details for one or more memcached servers to use for memory caching. - * Memcache is only used if other memory cache options (xcache, apc, apcu) are + * Memcache is only used if other memory cache options (xcache, apc, apcu, redis) are * not available. */ 'memcached_servers' => array( -- cgit v1.2.3