cache = $cache; $this->key = $key; } /** * @return bool */ public function exists() { $found = false; $this->cache->get( $this->key, $found ); return $found; } /** * @return mixed */ public function get() { $found = false; return $this->cache->get( $this->key, $found ); } /** * @param mixed $value */ public function set( $value ) { $this->cache->set( $this->key, $value ); } }