projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #14987 from civicrm/5.16
[civicrm-core.git]
/
CRM
/
Utils
/
Cache
/
ArrayCache.php
diff --git
a/CRM/Utils/Cache/ArrayCache.php
b/CRM/Utils/Cache/ArrayCache.php
index 2824b80e61123bf000145ac573bf12aec4bebad4..c83f3f1f4eb63448bfaef67f2226ffd78e14f2e7 100644
(file)
--- a/
CRM/Utils/Cache/ArrayCache.php
+++ b/
CRM/Utils/Cache/ArrayCache.php
@@
-32,17
+32,19
@@
*/
/**
*/
/**
- * Class CRM_Utils_Cache_Array
c
ache
+ * Class CRM_Utils_Cache_Array
C
ache
*/
*/
-class CRM_Utils_Cache_Array
c
ache implements CRM_Utils_Cache_Interface {
+class CRM_Utils_Cache_Array
C
ache implements CRM_Utils_Cache_Interface {
use CRM_Utils_Cache_NaiveMultipleTrait;
use CRM_Utils_Cache_NaiveMultipleTrait;
- use CRM_Utils_Cache_NaiveHasTrait; // TODO Native implementation
+ // TODO Native implementation
+ use CRM_Utils_Cache_NaiveHasTrait;
const DEFAULT_TIMEOUT = 3600;
/**
* The cache storage container, an in memory array by default
const DEFAULT_TIMEOUT = 3600;
/**
* The cache storage container, an in memory array by default
+ * @var array
*/
protected $_cache;
*/
protected $_cache;
@@
-54,11
+56,11
@@
class CRM_Utils_Cache_Arraycache implements CRM_Utils_Cache_Interface {
* @param array $config
* An array of configuration params.
*
* @param array $config
* An array of configuration params.
*
- * @return \CRM_Utils_Cache_Array
c
ache
+ * @return \CRM_Utils_Cache_Array
C
ache
*/
public function __construct($config) {
*/
public function __construct($config) {
- $this->_cache =
array()
;
- $this->_expires =
array()
;
+ $this->_cache =
[]
;
+ $this->_expires =
[]
;
}
/**
}
/**
@@
-109,7
+111,7
@@
class CRM_Utils_Cache_Arraycache implements CRM_Utils_Cache_Interface {
public function flush() {
unset($this->_cache);
unset($this->_expires);
public function flush() {
unset($this->_cache);
unset($this->_expires);
- $this->_cache =
array()
;
+ $this->_cache =
[]
;
return TRUE;
}
return TRUE;
}