Merge #1708 Redis 캐시 핸들러 추가 by kijin

* pr/1708:
  Use human-readable cache keys in Redis
  Fix serialization in Redis cache handler
  Add Redis AUTH command
  Add support for Redis cache handler
This commit is contained in:
Kijin Sung 2015-10-08 15:08:43 +09:00
commit ea61a0455c
2 changed files with 258 additions and 0 deletions

View file

@ -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';