function _cache_get_object

cis7 _cache_get_object($bin)
cle7 _cache_get_object($bin)
elmsmedia7 _cache_get_object($bin)
icor7 _cache_get_object($bin)
meedjum_blog7 _cache_get_object($bin)
mooc7 _cache_get_object($bin)

Gets the cache object for a cache bin.

By default, this returns an instance of the DrupalDatabaseCache class. Classes implementing DrupalCacheInterface can register themselves both as a default implementation and for specific bins.


$bin: The cache bin for which the cache object should be returned.

Return value

DrupalCacheInterface The cache object associated with the specified bin.

See also


5 calls to _cache_get_object()
cache_clear_all in includes/
Expires data from the cache.
cache_get in includes/
Returns data from the persistent cache.
cache_get_multiple in includes/
Returns data from the persistent cache when given an array of cache IDs.
cache_is_empty in includes/
Checks if a cache bin is empty.
cache_set in includes/
Stores data in the persistent cache.


includes/, line 22
Functions and interfaces for cache handling.


function _cache_get_object($bin) {
  // We do not use drupal_static() here because we do not want to change the
  // storage of a cache bin mid-request.
  static $cache_objects;
  if (!isset($cache_objects[$bin])) {
    $class = variable_get('cache_class_' . $bin);
    if (!isset($class)) {
      $class = variable_get('cache_default_class', 'DrupalDatabaseCache');
    $cache_objects[$bin] = new $class($bin);
  return $cache_objects[$bin];



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.