mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 14:52:47 +08:00
添加api接口的支持
This commit is contained in:
3
library/think/cache/driver/apc.php
vendored
3
library/think/cache/driver/apc.php
vendored
@@ -10,6 +10,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\cache\driver;
|
||||
use think\Exception;
|
||||
|
||||
/**
|
||||
* Apc缓存驱动
|
||||
@@ -30,7 +31,7 @@ class Apc {
|
||||
*/
|
||||
public function __construct($options=[]) {
|
||||
if(!function_exists('apc_cache_info')) {
|
||||
E('_NOT_SUPPERT_:Apc');
|
||||
throw new Exception('_NOT_SUPPERT_:Apc');
|
||||
}
|
||||
if(!empty($options)) {
|
||||
$this->options = array_merge($this->options,$options);
|
||||
|
||||
3
library/think/cache/driver/memcache.php
vendored
3
library/think/cache/driver/memcache.php
vendored
@@ -10,6 +10,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\cache\driver;
|
||||
use think\Exception;
|
||||
|
||||
/**
|
||||
* Memcache缓存驱动
|
||||
@@ -33,7 +34,7 @@ class Memcache {
|
||||
*/
|
||||
public function __construct($options=[]) {
|
||||
if ( !extension_loaded('memcache') ) {
|
||||
E('_NOT_SUPPERT_:memcache');
|
||||
throw new Exception('_NOT_SUPPERT_:memcache');
|
||||
}
|
||||
if(!empty($options)) {
|
||||
$this->options = array_merge($this->options,$options);
|
||||
|
||||
3
library/think/cache/driver/redis.php
vendored
3
library/think/cache/driver/redis.php
vendored
@@ -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);
|
||||
|
||||
3
library/think/cache/driver/sqlite.php
vendored
3
library/think/cache/driver/sqlite.php
vendored
@@ -10,6 +10,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\cache\driver;
|
||||
use think\Exception;
|
||||
|
||||
/**
|
||||
* Sqlite缓存驱动
|
||||
@@ -33,7 +34,7 @@ class Sqlite {
|
||||
*/
|
||||
public function __construct($options=[]) {
|
||||
if ( !extension_loaded('sqlite') ) {
|
||||
E('_NOT_SUPPERT_:sqlite');
|
||||
throw new Exception('_NOT_SUPPERT_:sqlite');
|
||||
}
|
||||
if(!empty($options)) {
|
||||
$this->options = array_merge($this->options,$options);
|
||||
|
||||
3
library/think/cache/driver/wincache.php
vendored
3
library/think/cache/driver/wincache.php
vendored
@@ -10,6 +10,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\cache\driver;
|
||||
use think\Exception;
|
||||
|
||||
/**
|
||||
* Wincache缓存驱动
|
||||
@@ -30,7 +31,7 @@ class Wincache {
|
||||
*/
|
||||
public function __construct($options=[]) {
|
||||
if ( !function_exists('wincache_ucache_info') ) {
|
||||
E('_NOT_SUPPERT_:WinCache');
|
||||
throw new Exception('_NOT_SUPPERT_:WinCache');
|
||||
}
|
||||
if(!empty($options)) {
|
||||
$this->options = array_merge($this->options,$options);
|
||||
|
||||
3
library/think/cache/driver/xcache.php
vendored
3
library/think/cache/driver/xcache.php
vendored
@@ -10,6 +10,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\cache\driver;
|
||||
use think\Exception;
|
||||
|
||||
/**
|
||||
* Xcache缓存驱动
|
||||
@@ -30,7 +31,7 @@ class Xcache {
|
||||
*/
|
||||
public function __construct($options=[]) {
|
||||
if ( !function_exists('xcache_info') ) {
|
||||
E('_NOT_SUPPERT_:Xcache');
|
||||
throw new Exception('_NOT_SUPPERT_:Xcache');
|
||||
}
|
||||
if(!empty($options)) {
|
||||
$this->options = array_merge($this->options,$options);
|
||||
|
||||
Reference in New Issue
Block a user