public function get($keys, $flags = null) {
    if (is_array($keys)) {
      $return_value = $this->getMulti($keys, $flags);
      if (empty($return_value)) {
        return false;
      } else {
        return $return_value;
      }
    } else {
      try {
        $return_value = $this->getMulti(array($keys), array($flags));
      } catch (Error $e) {
        return false;
      }
      if (array_key_exists($keys, $return_value)) {
        return $return_value[$keys];
      } else {
        return false;
      }
    }
  }
public function get($keys, $flags = null) {
    if (is_array($keys)) {
      $return_value = $this->getMulti($keys, $flags);
      if (empty($return_value)) {
        return false;
      } else {
        return $return_value;
      }
    } else {
      try {
        $return_value = $this->getMulti(array($keys), array($flags));
      } catch (Error $e) {
        return false;
      }
      if (array_key_exists($keys, $return_value)) {
        return $return_value[$keys];
      } else {
        return false;
      }
    }
  }
public function get ( $ keys , $ flags = null ) { if ( is_array ( $ keys ) ) { $ return_value = $ this -> getMulti ( $ keys , $ flags ) ; if ( empty ( $ return_value ) ) { return false ; } else { return $ return_value ; } } else { try { $ return_value = $ this -> getMulti ( array ( $ keys ) , array ( $ flags ) ) ; } catch ( Error $ e ) { return false ; } if ( array_key_exists ( $ keys , $ return_value ) ) { return $ return_value [ $ keys ] ; } else { return false ; } } }
Fetches previously stored data from the cache.

@param string|string[] $keys The key associated with the value to fetch, or
an array of keys if fetching multiple values.

@param int $flags This parameter is present only for compatibility and is
ignored. It should return the stored flag value.

@return mixed On success, the string associated with the key, or an array
of key-value pairs when $keys is an array. On failure, false
is returned.
Fetches previously stored data from the cache .