insert(array('processid' => $name, 'expiry' => time() + $ttl), FALSE, true); break; case 'get': $ret = C::t('common_process')->fetch($name); if(empty($ret) || $ret['expiry'] < time()) { $ret = false; } else { $ret = true; } break; case 'rm': $ret = C::t('common_process')->delete_process($name, time()); break; } return $ret; } } ?>