You are here

function Cache::cacheGet in X Autoload 7.5

Replicates cache_get().

Parameters

string $cid:

string $bin:

Return value

object|false

See also

cache_get()

File

tests/src/VirtualDrupal/Cache.php, line 24

Class

Cache

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

function cacheGet($cid, $bin = 'cache') {
  if (!isset($this->cache[$bin][$cid])) {
    return FALSE;
  }
  return $this->cache[$bin][$cid];
}