Support caching with Redis (#1009)

This commit is contained in:
RainLoop Team 2016-05-23 00:33:26 +03:00
parent f180c2fbec
commit 7e4479d655
264 changed files with 18830 additions and 5 deletions

View file

@ -1020,7 +1020,17 @@ class Actions
$oDriver = \MailSo\Cache\Drivers\Memcache::NewInstance(
$this->Config()->Get('labs', 'fast_cache_memcache_host', '127.0.0.1'),
(int) $this->Config()->Get('labs', 'fast_cache_memcache_port', 11211),
43200, $sKey
43200,
$sKey
);
break;
case 'REDIS' === $sDriver && \class_exists('Predis\Client'):
$oDriver = \MailSo\Cache\Drivers\Redis::NewInstance(
$this->Config()->Get('labs', 'fast_cache_redis_host', '127.0.0.1'),
(int) $this->Config()->Get('labs', 'fast_cache_redis_port', 6379),
43200,
$sKey
);
break;
}

View file

@ -357,7 +357,7 @@ Enables caching in the system'),
'index' => array('v1', 'Additional caching key. If changed, cache is purged'),
'fast_cache_driver' => array('files', 'Can be: files, APC, memcache'),
'fast_cache_driver' => array('files', 'Can be: files, APC, memcache, redis'),
'fast_cache_index' => array('v1', 'Additional caching key. If changed, fast cache is purged'),
'http' => array(true, 'Browser-level cache. If enabled, caching is maintainted without using files'),
@ -430,7 +430,8 @@ Enables caching in the system'),
'http_client_ip_check_proxy' => array(false),
'fast_cache_memcache_host' => array('127.0.0.1'),
'fast_cache_memcache_port' => array(11211),
'fast_cache_memcache_expire' => array(43200),
'fast_cache_redis_host' => array('127.0.0.1'),
'fast_cache_redis_port' => array(6379),
'use_local_proxy_for_external_images' => array(false),
'detect_image_exif_orientation' => array(true),
'cookie_default_path' => array(''),