去掉缓存驱动的length参数

This commit is contained in:
thinkphp
2016-06-03 12:20:18 +08:00
parent e37cf2cc17
commit f05e7427d9
11 changed files with 16 additions and 27 deletions

View File

@@ -23,7 +23,6 @@ class Apc
protected $options = [ protected $options = [
'expire' => 0, 'expire' => 0,
'prefix' => '', 'prefix' => '',
'length' => 0,
]; ];
/***************************** /*****************************
需要支持apc_cli模式 需要支持apc_cli模式

View File

@@ -25,7 +25,6 @@ class File
'cache_subdir' => false, 'cache_subdir' => false,
'path_level' => 1, 'path_level' => 1,
'prefix' => '', 'prefix' => '',
'length' => 0,
'path' => CACHE_PATH, 'path' => CACHE_PATH,
'data_compress' => false, 'data_compress' => false,
]; ];

View File

@@ -23,7 +23,6 @@ class Memcache
'expire' => 0, 'expire' => 0,
'timeout' => 0, // 超时时间(单位:毫秒) 'timeout' => 0, // 超时时间(单位:毫秒)
'persistent' => true, 'persistent' => true,
'length' => 0,
'prefix' => '', 'prefix' => '',
]; ];

View File

@@ -22,7 +22,6 @@ class Memcached
'port' => 11211, 'port' => 11211,
'expire' => 0, 'expire' => 0,
'timeout' => 0, // 超时时间(单位:毫秒) 'timeout' => 0, // 超时时间(单位:毫秒)
'length' => 0,
'prefix' => '', 'prefix' => '',
]; ];

View File

@@ -31,7 +31,6 @@ class Redis
'timeout' => 0, 'timeout' => 0,
'expire' => 0, 'expire' => 0,
'persistent' => false, 'persistent' => false,
'length' => 0,
'prefix' => '', 'prefix' => '',
]; ];

View File

@@ -70,7 +70,6 @@ class Redisd
'timeout' => 10, 'timeout' => 10,
'expire' => false, 'expire' => false,
'persistent' => false, 'persistent' => false,
'length' => 0,
'prefix' => '', 'prefix' => '',
'serialize' => \Redis::SERIALIZER_PHP, 'serialize' => \Redis::SERIALIZER_PHP,
]; ];
@@ -136,7 +135,7 @@ class Redisd
//发生错误则摘掉当前节点 //发生错误则摘掉当前节点
try { try {
$result = $this->handler->$func($host, $port, $this->options['timeout']); $result = $this->handler->$func($host, $port, $this->options['timeout']);
if($result === false) { if (false === $result) {
$this->handler->getLastError(); $this->handler->getLastError();
} }

View File

@@ -27,7 +27,6 @@ class Sae
'expire' => 0, 'expire' => 0,
'timeout' => false, 'timeout' => false,
'persistent' => false, 'persistent' => false,
'length' => 0,
'prefix' => '', 'prefix' => '',
]; ];

View File

@@ -25,7 +25,6 @@ class Secache
'path' => '', 'path' => '',
'expire' => 0, 'expire' => 0,
'prefix' => '', 'prefix' => '',
'length' => 0,
]; ];
/** /**

View File

@@ -26,7 +26,6 @@ class Sqlite implements CacheInterface
'table' => 'sharedmemory', 'table' => 'sharedmemory',
'prefix' => '', 'prefix' => '',
'expire' => 0, 'expire' => 0,
'length' => 0,
'persistent' => false, 'persistent' => false,
]; ];

View File

@@ -23,7 +23,6 @@ class Wincache
protected $options = [ protected $options = [
'prefix' => '', 'prefix' => '',
'expire' => 0, 'expire' => 0,
'length' => 0,
]; ];
/** /**

View File

@@ -23,7 +23,6 @@ class Xcache
protected $options = [ protected $options = [
'prefix' => '', 'prefix' => '',
'expire' => 0, 'expire' => 0,
'length' => 0,
]; ];
/** /**