Cache/SimpleStatic.php
- Classes
- Kwf_Cache_SimpleStatic
\Kwf_Cache_SimpleStatic
Description
A simple and fast cache that can't delete individual entries. Doesn't have all the Zend_Cache bloat.
Use for values depending on static settings that won't change except code changes.
If available it uses apc user cache direclty (highly recommended!!), else it falls back to Zend_Cache using a memcache backend.
Methods
_delete
_delete(
$cacheIds
)
:
Delete static cache, don't use except in unittests
Arguments
- $cacheIds
Details
- visibility
- public
- final
- false
- static
- true
- internal
add
add(
$cacheId, $data
)
:
Arguments
- $cacheId
- $data
Details
- visibility
- public
- final
- false
- static
- true
clear
clear(
$cacheIdPrefix
)
:
clear static cache with prefix, don't use except in clear-cache-watcher
Arguments
- $cacheIdPrefix
Details
- visibility
- public
- final
- false
- static
- true
- internal
fetch
fetch(
$cacheId, $success
=
true
)
:
Arguments
- $cacheId
- $success
Details
- visibility
- public
- final
- false
- static
- true