Ejemplo n.º 1
0
 /**
  * Session read handler.
  * Do not call this method directly.
  * @param string $id session ID
  * @return string the session data
  */
 public function readSession($id)
 {
     $data = $this->ssdb->get($this->calculateKey($id));
     return $data === false ? '' : $data;
 }
Ejemplo n.º 2
0
 /**
  * Retrieves a value from cache with a specified key.
  * This is the implementation of the method declared in the parent class.
  * @param string $key a unique key identifying the cached value
  * @return string|boolean the value stored in cache, false if the value is not in the cache or expired.
  */
 protected function getValue($key)
 {
     $data = $this->ssdb->get($key);
     return $this->is_unserialize ? unserialize($data) : $data;
 }
Ejemplo n.º 3
0
 /**
  * @see InterfaceCache
  */
 public function get($sKey)
 {
     return json_decode($this->_oSsdb->get($sKey), true);
 }