/var/www/vhosts/nabawater/vendor/yiisoft/yii2/caching
NameSizeModeActions
migrations/-0755rm
ApcCache.php65390644editdlrm
ArrayCache.php23590644editdlrm
Cache.php260060644editdlrm
CacheInterface.php95640644editdlrm
ChainedDependency.php25270644editdlrm
DbCache.php104980644editdlrm
DbDependency.php22740644editdlrm
DbQueryDependency.php37380644editdlrm
Dependency.php42430644editdlrm
DummyCache.php29150644editdlrm
ExpressionDependency.php19500644editdlrm
FileCache.php108710644editdlrm
FileDependency.php16050644editdlrm
MemCache.php139010644editdlrm
MemCacheServer.php19660644editdlrm
TagDependency.php36010644editdlrm
WinCache.php54640644editdlrm
XCache.php43220644editdlrm
ZendDataCache.php33710644editdlrm
Edit: /var/www/vhosts/nabawater/vendor/yiisoft/yii2/caching/ArrayCache.php (2359B)
* @since 2.0 */ class ArrayCache extends Cache { private $_cache = []; /** * {@inheritdoc} */ public function exists($key) { $key = $this->buildKey($key); return isset($this->_cache[$key]) && ($this->_cache[$key][1] === 0 || $this->_cache[$key][1] > microtime(true)); } /** * {@inheritdoc} */ protected function getValue($key) { if (isset($this->_cache[$key]) && ($this->_cache[$key][1] === 0 || $this->_cache[$key][1] > microtime(true))) { return $this->_cache[$key][0]; } return false; } /** * {@inheritdoc} */ protected function setValue($key, $value, $duration) { $this->_cache[$key] = [$value, $duration === 0 ? 0 : microtime(true) + $duration]; return true; } /** * {@inheritdoc} */ protected function addValue($key, $value, $duration) { if (isset($this->_cache[$key]) && ($this->_cache[$key][1] === 0 || $this->_cache[$key][1] > microtime(true))) { return false; } $this->_cache[$key] = [$value, $duration === 0 ? 0 : microtime(true) + $duration]; return true; } /** * {@inheritdoc} */ protected function deleteValue($key) { unset($this->_cache[$key]); return true; } /** * {@inheritdoc} */ protected function flushValues() { $this->_cache = []; return true; } }