Code formatting
This commit is contained in:
7
cache/CacheKey.php
vendored
7
cache/CacheKey.php
vendored
@ -16,11 +16,12 @@ class CacheKey
|
||||
* @var Cacher
|
||||
*/
|
||||
protected $cacher;
|
||||
|
||||
|
||||
/**
|
||||
* @var CacheKey
|
||||
*/
|
||||
protected $key;
|
||||
|
||||
protected $expire = 0;
|
||||
|
||||
/**
|
||||
@ -32,11 +33,11 @@ class CacheKey
|
||||
*/
|
||||
public function __construct($cacher, $key, $params = array(), $expire = 0)
|
||||
{
|
||||
$this->cacher = $cacher;
|
||||
$this->cacher = $cacher;
|
||||
$this->key = $key;
|
||||
if ($params) {
|
||||
$params = (is_array($params)) ? implode('|', $params) : $params;
|
||||
$this->key = $key . '_' . $params;
|
||||
$this->key = $key . '_' . $params;
|
||||
}
|
||||
$this->expire = $expire;
|
||||
}
|
||||
|
Reference in New Issue
Block a user