add a delete function
This commit is contained in:
parent
6235188a29
commit
1b8f7a441b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue