添加api接口的支持

This commit is contained in:
thinkphp
2015-05-12 15:34:04 +08:00
parent d886644b58
commit 36a84e75de
20 changed files with 247 additions and 196 deletions

View File

@@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace think\cache\driver;
use think\Exception;
/**
* Redis缓存驱动
@@ -34,7 +35,7 @@ class Redis {
*/
public function __construct($options=[]) {
if ( !extension_loaded('redis') ) {
E('_NOT_SUPPERT_:redis');
throw new Exception('_NOT_SUPPERT_:redis');
}
if(!empty($options)) {
$this->options = array_merge($this->options,$options);