public function DrupalCacheArray::__construct
7.x bootstrap.inc | public DrupalCacheArray::__construct($cid, $bin) |
Constructs a DrupalCacheArray object.
Parameters
$cid: The cid for the array being cached.
$bin: The bin to cache the array.
1 call to DrupalCacheArray::__construct()
- 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.
File
- 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.
Code
public function __construct($cid, $bin) {
$this->cid = $cid;
$this->bin = $bin;
if ($cached = cache_get($this->cid, $this->bin)) {
$this->storage = $cached->data;
}
}