function cache_get

cis7 cache.inc cache_get($cid, $bin = 'cache')
cle7 cache.inc cache_get($cid, $bin = 'cache')
elmsmedia7 cache.inc cache_get($cid, $bin = 'cache')
icor7 cache.inc cache_get($cid, $bin = 'cache')
meedjum_blog7 cache.inc cache_get($cid, $bin = 'cache')
mooc7 cache.inc cache_get($cid, $bin = 'cache')

Returns data from the persistent cache.

Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.

Parameters

$cid: The cache ID of the data to retrieve.

$bin: The cache bin to store the data in. Valid core values are 'cache_block', 'cache_bootstrap', 'cache_field', 'cache_filter', 'cache_form', 'cache_menu', 'cache_page', 'cache_path', 'cache_update' or 'cache' for the default cache.

Return value

The cache or FALSE on failure.

See also

cache_set()

96 calls to cache_get()
accessibility_accessibility_guidelines in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_accessibility_guidelines().
accessibility_accessibility_tests in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_accessibility_tests().
accessibility_tests_json in sites/all/modules/ulmus/accessibility/accessibility.pages.inc
Outputs settings and test information in JSON.
adaptivetheme_css_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/alter.inc
hook_css_alter()
admin_menu_cache_get in sites/all/modules/ulmus/admin_menu/admin_menu.module
Retrieve a client-side cache hash from cache.

... See full list

File

includes/cache.inc, line 55
Functions and interfaces for cache handling.

Code

function cache_get($cid, $bin = 'cache') {
  return _cache_get_object($bin)->get($cid);
}