Implemented group delete for cache keys in ApcEngine

This commit is contained in:
Jose Lorenzo Rodriguez 2012-03-25 19:45:32 -04:30
parent ae34c64fa3
commit 4f131d54f1
4 changed files with 55 additions and 0 deletions

View file

@ -153,4 +153,16 @@ class ApcEngine extends CacheEngine {
}
return $result;
}
/**
* Increments the group value to simulate deletion of all keys under a group
* old values will remain in sotrage until they expire.
*
* @return boolean success
**/
public function clearGroup($group) {
apc_inc($group, 1, $success);
return $success;
}
}