You are here

function ctools_cache_simple_cache_get in Chaos Tool Suite (ctools) 7

1 string reference to 'ctools_cache_simple_cache_get'
simple.inc in plugins/cache/simple.inc

File

plugins/cache/simple.inc, line 17

Code

function ctools_cache_simple_cache_get($data, $key) {
  ctools_include('object-cache');

  // Ensure that if there is somehow no data, we at least don't stomp on other
  // people's caches.
  if (empty($data)) {
    $data = 'simple_cache_plugin';
  }
  return ctools_object_cache_get($data, $key);
}