mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-04 06:12:48 +08:00
数组定义用法统一
This commit is contained in:
@@ -17,11 +17,11 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Apc {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'expire' => 0,
|
||||
'prefix' => '',
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -23,13 +23,13 @@ namespace Think\Cache\Driver;
|
||||
class Db {
|
||||
|
||||
protected $handler = null;
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'db' => '',
|
||||
'table' => '',
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -15,11 +15,11 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Eaccelerator {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -9,13 +9,14 @@
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Think\Cache\Driver;
|
||||
|
||||
/**
|
||||
* 文件类型缓存类
|
||||
* @author liu21st <liu21st@gmail.com>
|
||||
*/
|
||||
class File {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'expire' => 0,
|
||||
'cache_subdir' => false,
|
||||
'path_level' => 1,
|
||||
@@ -23,7 +24,7 @@ class File {
|
||||
'length' => 0,
|
||||
'temp' => '',
|
||||
'data_compress' => false,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -15,14 +15,14 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Memcache {
|
||||
protected $handler = null;
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 11211,
|
||||
'expire' => 0,
|
||||
'timeout' => false,
|
||||
'persistent' => false,
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -16,14 +16,14 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Redis {
|
||||
protected $handler = null;
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'timeout' => false,
|
||||
'expire' => 0,
|
||||
'persistent' => false,
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -16,13 +16,13 @@ namespace Think\Cache\Driver;
|
||||
class Secache {
|
||||
|
||||
protected $handler = null;
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'project' => '',
|
||||
'temp' => '',
|
||||
'expire' => 0,
|
||||
'prefix' => '',
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -15,10 +15,10 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Simple {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'prefix' => '',
|
||||
'temp' => '',
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -15,14 +15,14 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Sqlite {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'db' => ':memory:',
|
||||
'table' => 'sharedmemory',
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
'length' => 0,
|
||||
'persistent' => false,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -15,11 +15,11 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Wincache {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
@@ -15,11 +15,11 @@ namespace Think\Cache\Driver;
|
||||
*/
|
||||
class Xcache {
|
||||
|
||||
protected $options = array(
|
||||
protected $options = [
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
'length' => 0,
|
||||
);
|
||||
];
|
||||
|
||||
/**
|
||||
* 架构函数
|
||||
|
||||
Reference in New Issue
Block a user