1. drupal
    1. 8
    2. 7
7 – 8 cache_get_multiple(array &$cids, $bin = 'cache')

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


$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.

▾ 2 functions call cache_get_multiple()

CacheGetMultipleUnitTest::testCacheMultiple in modules/simpletest/tests/cache.test
Test cache_get_multiple().
field_attach_load in modules/field/
Loads fields for the current revisions of a group of entities.


includes/, line 63

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