You are here

function ctools_cache_simple_cache_set in Chaos Tool Suite (ctools) 7

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

File

plugins/cache/simple.inc, line 29

Code

function ctools_cache_simple_cache_set($data, $key, $object) {
  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_set($data, $key, $object);
}