function cache_get_multiple

Returns data from the persistent cache when given an array of cache IDs.

Parameters

$cids: An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed.

$bin: The cache bin where the data is stored.

Return value

An array of the items successfully returned from cache indexed by cid.

3 calls to cache_get_multiple()
CacheGetMultipleUnitTest::testCacheMultiple in modules/simpletest/tests/cache.test
Test cache_get_multiple().
field_attach_load in modules/field/field.attach.inc
Loads fields for the current revisions of a group of entities.
_block_render_blocks in modules/block/block.module
Render the content and subject for a set of blocks.

File

includes/cache.inc, line 72

Code

function cache_get_multiple(array &$cids, $bin = 'cache') {
    return _cache_get_object($bin)->getMultiple($cids);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.