Enable all cache drivers, and add initial implementation of SQLite driver

This commit is contained in:
Kijin Sung 2016-04-17 17:36:02 +09:00
parent b8db18a242
commit 194cf3fa70
2 changed files with 242 additions and 1 deletions

View file

@ -34,7 +34,7 @@ class Cache
{
$class_name = '\\Rhymix\\Framework\\Drivers\\Cache\\' . $config['driver'];
}
elseif (preg_match('/^(apc|memcache|redis|wincache|file)/', strval(array_first($config)), $matches))
elseif (preg_match('/^(apc|dummy|file|memcache|redis|sqlite|wincache|xcache)/', strval(array_first($config)), $matches))
{
$class_name = '\\Rhymix\\Framework\\Drivers\\Cache\\' . $matches[1] . ($matches[1] === 'memcache' ? 'd' : '');
}