add a delete function

This commit is contained in:
<bdauvergne@entrouvert.com> 1207743594 +0200 0001-01-01 00:00:00 +00:00
parent 6235188a29
commit 1b8f7a441b
1 changed files with 7 additions and 0 deletions

View File

@ -67,4 +67,11 @@ class LassoSPKitMemCache {
}
return $instance->get($key);
}
function delete($key) {
$instance = LassoSPKitMemCache::getInstance();
if (! $instance) {
lassospkit_errlog("LassoSPKitMemCache: could not delete key " . var_export($key,1) . ", no instance present");
}
return $instance->delete($key);
}
}