You are here

public function CacheProvider::fetch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php \Doctrine\Common\Cache\CacheProvider::fetch()

Fetches an entry from the cache.

Parameters

string $id The id of the cache entry to fetch.:

Return value

mixed The cached data or FALSE, if no cache entry exists for the given id.

Overrides Cache::fetch

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php, line 76

Class

CacheProvider
Base class for cache provider implementations.

Namespace

Doctrine\Common\Cache

Code

public function fetch($id) {
  return $this
    ->doFetch($this
    ->getNamespacedId($id));
}