mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 19:12:42 +00:00
Implemented group delete for cache keys in ApcEngine
This commit is contained in:
parent
ae34c64fa3
commit
4f131d54f1
4 changed files with 55 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue