src/Db/Database.php
public function getCache() {
        if (!isset($this->_cache) && isset($this->cacheComponent)) {
            if ($this->cacheComponent instanceof ExtendedCacheInterface) {
                $this->_cache = $this->cacheComponent;
            } else {
                $this->_cache = \Reaction::create($this->cacheComponent);
            }
        }
        return $this->_cache;
    }
public function getCache() {
        if (!isset($this->_cache) && isset($this->cacheComponent)) {
            if ($this->cacheComponent instanceof ExtendedCacheInterface) {
                $this->_cache = $this->cacheComponent;
            } else {
                $this->_cache = \Reaction::create($this->cacheComponent);
            }
        }
        return $this->_cache;
    }
Get cache component
@return ExpiringCacheInterface|null