mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Support caching with Redis (#1009)
This commit is contained in:
parent
f180c2fbec
commit
7e4479d655
264 changed files with 18830 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue