Fetch data and timestamp from xcache, store in instance

@param string $id
@return bool success
977553
private function _fetch($id)
    {
        if ($this->_id === $id) {
            return true;
        }

        $ret = xcache_get($id);
        if (false === $ret) {
            $this->_id = null;

            return false;
        }

        list($this->_lm, $this->_data) = explode('|', $ret, 2);
        $this->_id = $id;

        return true;
    }
1245908
protected static function cache_get_by_id($id) {
        if (isset(self::$cache_contextsbyid[$id])) {
            return self::$cache_contextsbyid[$id];
        }
        return false;
    }
588226
public function contains( $id ) {

		$contains = isset( $this->cache[ $id ] ) || array_key_exists( $id, $this->cache );

		if ( !$contains ) {
			return false;
		}

		if ( $this->ttl[ $id ] > 0 && $this->ttl[ $id ] <= microtime( true ) ) {
			return false;
		}

		return true;
	}
690974
public function fetch($id)
    {
        $id = $this->uniqId + '-' + $id;
        if ($this->contains($id)) {
            return $this->cache->fetch($id);
        }

        return false;
    }
1299847
protected function doFetch($id)
    {
        $item = $this->cachePool->getItem($this->normalizeKey($id));

        if ($item->isHit()) {
            return $item->get();
        }

        return false;
    }
437470
public function get($id)
    {
        if (function_exists('memcache_get')) {
            return $this->memcache->get($id);
        }

        throw new MemcacheException(
            sprintf('key id memcache "%s" not found, are you sure memcache_get function already loaded ?', $id)
        );
    }
601773
public function fetchById($id)
    {
        if ($this->hasCache()) {
            $data = $this->getCacheItem($id);
            return $data;
        }
        return parent::fetchById($id);
    }
712803
protected function getHasCache($id)
    {
        return $this->useHasCache && array_key_exists($id, $this->hasCache)
            ? $this->hasCache[$id]
            : false;
    }
946650
public static function find_by_id($id)
	{
		$hzad = self::oneOrNew($id);

		if (!$hzad->get('authenticator'))
		{
			return false;
		}

		return $hzad;
	}
331459
public function fetch( $id ) {

		if ( $this->contains( $id ) ) {
			$this->cacheHits++;
			return $this->moveToMostRecentlyUsedPosition( $id );
		}

		$this->cacheMisses++;
		return false;
	}
183245
public function fetch($id)
    {
        if (!$this->locking) {
            return file_get_contents($this->path . '/' . $id);
        }

        $fp = fopen($this->path . '/' . $id, 'rb');
        if (!$fp) {
            return false;
        }

        flock($fp, LOCK_SH);
        $ret = stream_get_contents($fp);
        flock($fp, LOCK_UN);
        fclose($fp);

        return $ret;
    }
213055
protected function _read($id)
    {
        if (isset($this->cache[$id])) {
            /** @var MemoryItem $item */
            $item = $this->cache[$id];
            if (!$item->is_valid()) {
                unset($this->cache[$id]);
                return false;
            }

            return $item->data;
        }

        return false;
    }
135777
public function fetch($id)
    {
        $file = $this->getFilename($id);

        if (!$this->exists($id)) {
            throw new NotExistsException(sprintf('Could not fetch data from file as file does not exist: %s', $file));
        }

        return $this->readData($file);
    }
1302501
public function get($id)
	{
		$data = $this->_get($id);
		return is_array($data) ? $data['data'] : FALSE;
	}
214417
public function fetchById($id)
    {
        $data = [];
        foreach ($this->globDataFile($id) as $filename) {
            $data = array_merge($data, $this->fetchFileData($id, $filename));
        }
        return $this->resultAsModel($data);
    }
204955
public function findById($id) {
    $dataConnection = $this->app->getDataConnection($this->connection);
    $result = $dataConnection->findOneByField($this->idColumn, $dataConnection->convertToNativeId($id),
      $this->table, $this->readFields);
    if ($result == NULL) {
      return FALSE;
    }
    $this->load($result);
    return TRUE;
  }
245251
public function findCacheById(int $id)
    {

        // Check if already in addToCache
        if ($this->isCachedById($id)) {
            return $this->cacheById[$id];
        }

        return null;
    }