Exemplo n.º 1
0
 /**
  * @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();
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function read($session_id)
 {
     return $this->cacheStore->get($this->options['prefix'] . $session_id);
 }