You are here

public static function CacheHelper::getMultiple in Helper 7

A copy of cache_get_multiple() that respects expiration.

See also

http://drupal.org/node/534092

File

lib/CacheHelper.php, line 24

Class

CacheHelper

Code

public static function getMultiple(array &$cids, $bin = 'cache') {
  $cache = cache_get_multiple($cids, $bin);
  return array_filter($cache, array(
    get_called_class(),
    'isCacheUnexpired',
  ));
}