mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Add support for Redis cache handler
This commit is contained in:
parent
94d43c2b76
commit
8c4ee529cd
2 changed files with 247 additions and 0 deletions
10
classes/cache/CacheHandler.class.php
vendored
10
classes/cache/CacheHandler.class.php
vendored
|
|
@ -69,6 +69,11 @@ class CacheHandler extends Handler
|
|||
$type = 'memcache';
|
||||
$url = $info->use_object_cache;
|
||||
}
|
||||
else if(substr($info->use_object_cache, 0, 5) == 'redis')
|
||||
{
|
||||
$type = 'redis';
|
||||
$url = $info->use_object_cache;
|
||||
}
|
||||
else if($info->use_object_cache == 'wincache')
|
||||
{
|
||||
$type = 'wincache';
|
||||
|
|
@ -93,6 +98,11 @@ class CacheHandler extends Handler
|
|||
$type = 'memcache';
|
||||
$url = $info->use_template_cache;
|
||||
}
|
||||
else if(substr($info->use_template_cache, 0, 5) == 'redis')
|
||||
{
|
||||
$type = 'redis';
|
||||
$url = $info->use_template_cache;
|
||||
}
|
||||
else if($info->use_template_cache == 'wincache')
|
||||
{
|
||||
$type = 'wincache';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue