Cache Interface Reference
Detailed Description
Cache defines the interface for cache implementations.
Caches are divided into different sections, which store key value pairs.
Inheritance diagram for Cache:
Public Member Functions | |
exists ($section, $key) | |
getDate ($section, $key) | |
get ($section, $key) | |
put ($section, $key, $value, $lifetime=null) | |
clear ($section) | |
clearAll () | |
Member Function Documentation
◆ exists()
exists | ( | $section, | |
$key | |||
) |
◆ getDate()
getDate | ( | $section, | |
$key | |||
) |
Get the date of the specified cache entry.
- Parameters
-
$section The cache section $key The cache key
- Returns
- DateTime or null, if not cached
Implemented in FileCache.
◆ get()
get | ( | $section, | |
$key | |||
) |
◆ put()
put | ( | $section, | |
$key, | |||
$value, | |||
$lifetime = null |
|||
) |
◆ clear()
clear | ( | $section | ) |