数组定义用法统一

This commit is contained in:
thinkphp
2013-04-11 14:49:39 +08:00
parent bbe3ebedcf
commit 00ee80e943
35 changed files with 83 additions and 81 deletions

View File

@@ -17,11 +17,11 @@ namespace Think\Cache\Driver;
*/
class Apc {
protected $options = array(
protected $options = [
'expire' => 0,
'prefix' => '',
'length' => 0,
);
];
/**
* 架构函数

View File

@@ -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,
);
];
/**
* 架构函数

View File

@@ -15,11 +15,11 @@ namespace Think\Cache\Driver;
*/
class Eaccelerator {
protected $options = array(
protected $options = [
'prefix' => '',
'expire' => 0,
'length' => 0,
);
];
/**
* 架构函数

View File

@@ -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,
);
];
/**
* 架构函数

View File

@@ -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,
);
];
/**
* 架构函数

View File

@@ -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,
);
];
/**
* 架构函数

View File

@@ -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,
);
];
/**
* 架构函数

View File

@@ -15,10 +15,10 @@ namespace Think\Cache\Driver;
*/
class Simple {
protected $options = array(
protected $options = [
'prefix' => '',
'temp' => '',
);
];
/**
* 架构函数

View File

@@ -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,
);
];
/**
* 架构函数

View File

@@ -15,11 +15,11 @@ namespace Think\Cache\Driver;
*/
class Wincache {
protected $options = array(
protected $options = [
'prefix' => '',
'expire' => 0,
'length' => 0,
);
];
/**
* 架构函数

View File

@@ -15,11 +15,11 @@ namespace Think\Cache\Driver;
*/
class Xcache {
protected $options = array(
protected $options = [
'prefix' => '',
'expire' => 0,
'length' => 0,
);
];
/**
* 架构函数