Vous êtes connecté en tant que anonymous Se Deconnecter
key = $key; $this->expire = $expire; $this->repository = $repository; } /** * Load the cache. * * @return void */ public function load() { $contents = $this->repository->get($this->key); if (! is_null($contents)) { $this->setFromStorage($contents); } } /** * Persist the cache. * * @return void */ public function save() { $contents = $this->getForStorage(); $this->repository->put($this->key, $contents, $this->expire); } }