simple.inc in Chaos Tool Suite (ctools) 7
File
plugins/cache/simple.inc
View source
<?php
$plugin = array(
'title' => t('Simple'),
'cache get' => 'ctools_cache_simple_cache_get',
'cache set' => 'ctools_cache_simple_cache_set',
'cache clear' => 'ctools_cache_simple_cache_clear',
);
function ctools_cache_simple_cache_get($data, $key) {
ctools_include('object-cache');
if (empty($data)) {
$data = 'simple_cache_plugin';
}
return ctools_object_cache_get($data, $key);
}
function ctools_cache_simple_cache_set($data, $key, $object) {
ctools_include('object-cache');
if (empty($data)) {
$data = 'simple_cache_plugin';
}
return ctools_object_cache_set($data, $key, $object);
}
function ctools_cache_simple_cache_clear($data, $key) {
ctools_include('object-cache');
if (empty($data)) {
$data = 'simple_cache_plugin';
}
return ctools_object_cache_clear($data, $key);
}