Example #1
0
 /**
  * Returns result of a cached query.
  *
  * This method does not check if the query has been cached before, may return unexpected values if not.
  * Use has() to prevent this issue.
  *
  * @return array
  */
 public function get()
 {
     $hash = $this->reflector->getHash();
     $encoded = $this->redis->get($this->redis->prefix($hash));
     return $this->decodeData($encoded);
 }