/** * {@inheritDoc} */ public function write($sessionId, $data) { $this->files->put($this->path . DS . $sessionId, $data, true); }
/** * Write the service manifest file to disk. * * @param array $manifest * @return array */ public function writeManifest($manifest) { $path = $this->manifestPath . '/services.json'; $this->files->put($path, json_encode($manifest, JSON_PRETTY_PRINT)); return $manifest; }
/** * Store an item in the cache for a given number of minutes. * * @param string $key * @param mixed $value * @param int $minutes * @return void */ public function put($key, $value, $minutes) { $value = $this->expiration($minutes) . serialize($value); $this->createCacheDirectory($path = $this->path($key)); $this->files->put($path, $value); }