/** * @param FilesInterface $files * @param StoreInterface $store * @param array $options */ public function __construct(FilesInterface $files, StoreInterface $store, array $options) { parent::__construct($files, $options); $this->store = $store; if ($this->options['cache']) { $this->authToken = $this->store->get($this->options['username'] . '@rackspace-token'); $this->regions = (array) $this->store->get($this->options['username'] . '@rackspace-regions'); } //This code is going to use additional abstraction layer to connect storage and guzzle $this->client = new Client($this->options); $this->connect(); }
/** * {@inheritdoc} */ public function read($session_id) { return $this->cacheStore->get($this->options['prefix'] . $session_id); }