23 parent::__construct ( $root,
$postfix );
34 \apc_fetch ( $this->
getRealKey ( $key ), $success );
38 public function store($key, $code, $tag =
null) {
39 \apc_store ( $this->
getRealKey ( $key ), $code );
53 return \apc_fetch ( $this->
getRealKey ( $key ) );
63 return \apc_fetch ( $this->
getRealKey ( $key ) );
74 $cache = \apc_cache_info (
'user' );
75 if (empty ( $cache [
'cache_list'] )) {
78 foreach ( $cache [
'cache_list'] as $entry ) {
79 if ($entry [
'info'] != $key) {
82 $creationTime = $entry [
'creation_time'];
88 public function remove($key) {
93 \apc_clear_cache (
'user' );
98 return \array_filter ( $entries,
function ($v) use ($type) {
99 return UString::startswith ( $v [
'info'], $type );
105 $cache = \apc_cache_info (
'user' );
106 if (! empty ( $cache [
'cache_list'] )) {
107 $entries = $cache [
'cache_list'];
115 foreach ( $entries as $entry ) {
116 $key = $entry [
'info'];
117 if (UString::startswith ( $key, $type )) {
118 $result [] =
new CacheFile ( \ucfirst ( $type ), $key, $entry [
'creation_time'], $entry [
'mem_size'], $key );
121 if (\count ( $result ) === 0)
122 $result [] =
new CacheFile ( \ucfirst ( $type ),
"",
"",
"" );
128 foreach ( $entries as $entry ) {
129 $this->
remove ( $entry [
'info'] );
This class is responsible for storing Arrays in PHP files.
APC cache implementation Ubiquity\cache\system$ApcCache This class is part of Ubiquity.
file_get_contents($key)
return data stored for the given key.
__construct($root, $postfix="")
Initializes the apc cache-provider.
fetch($key)
Fetches data stored for the given key.
clear()
Clears all cache entries.
store($key, $code, $tag=null)
Caches the given data with the given key.
exists($key)
Check if annotation-data for the key has been stored.
getTimestamp($key)
Returns the timestamp of the last cache update for the given key.