public function DrupalCacheArray::__construct

Constructs a DrupalCacheArray object.

Parameters

$cid: The cid for the array being cached.

$bin: The bin to cache the array.

2 calls to DrupalCacheArray::__construct()
SchemaCache::__construct in drupal-7.x/includes/bootstrap.inc
Constructs a SchemaCache object.
SchemaCache::__construct in drupal-7.x/includes/bootstrap.inc
Constructs a SchemaCache object.
2 methods override DrupalCacheArray::__construct()
SchemaCache::__construct in drupal-7.x/includes/bootstrap.inc
Constructs a SchemaCache object.
ThemeRegistry::__construct in drupal-7.x/includes/theme.inc
Constructs a DrupalCacheArray object.

Archivo

drupal-7.x/includes/bootstrap.inc, line 336
Functions that need to be loaded on every Drupal request.

Class

DrupalCacheArray
Provides a caching wrapper to be used in place of large array structures.

Código

public function __construct($cid, $bin) {
  $this->cid = $cid;
  $this->bin = $bin;

  if ($cached = cache_get($this->cid, $this->bin)) {
    $this->storage = $cached->data;
  }
}