优化 缓存代码细节
This commit is contained in:
parent
431d694e43
commit
506268477d
|
@ -23,6 +23,7 @@ class memory_driver_memcache {
|
|||
public function init($config) {
|
||||
if (!$this->env()) {
|
||||
$this->enable = false;
|
||||
return;
|
||||
}
|
||||
if (!empty($config['server'])) {
|
||||
$this->obj = new Memcache;
|
||||
|
|
|
@ -23,6 +23,7 @@ class memory_driver_redis {
|
|||
function init($config) {
|
||||
if(!$this->env()) {
|
||||
$this->enable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($config['server'])) {
|
||||
|
|
Loading…
Reference in New Issue