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;
}