You are here

function ctools_cache_get in Chaos Tool Suite (ctools) 7

Fetch data from an indirect cache.

Parameters

string $mechanism: A string containing the plugin name, and an optional data element to send to the plugin separated by two colons.

string $key: The key used to identify the cache.

Return value

mixed The cached data. This can be any format as the plugin does not necessarily have knowledge of what is being cached.

4 calls to ctools_cache_get()
ctools_context_ajax_item_add in includes/context-admin.inc
Ajax entry point to add an context
ctools_context_ajax_item_delete in includes/context-admin.inc
Ajax entry point to edit an item
ctools_context_ajax_item_edit in includes/context-admin.inc
Ajax entry point to edit an item
ctools_wizard_multistep_form in includes/wizard.inc
Display a multi-step form.

File

includes/cache.inc, line 61
Plugins to handle cache-indirection.

Code

function ctools_cache_get($mechanism, $key) {
  return ctools_cache_operation($mechanism, $key, 'get');
}