public function getCache() { if (!empty($this->cache)) { return $this->cache; } return new StaticCache(); }