ExpensiveCache
class ExpensiveCache extends Cache (View source)
Class ExpensiveCache This cache stores data that is expensive to build that will see a performance boost if stored on disk.
\@package Concrete\Core\Cache\Level
Properties
Pool | $pool | from Cache | |
protected bool | $enabled | from Cache | |
protected DriverInterface | $driver | from Cache |
Methods
init()
Initializes the cache by setting up the cache pool and enabling the cache.
Details
in
Cache at line 32
__construct()
No description
protected
init()
Initializes the cache by setting up the cache pool and enabling the cache.
in
Cache at line 49
protected DriverInterface
loadConfig($level)
Loads the composite driver from constants.
in
Cache at line 100
bool
delete(string $key)
Deletes an item from the cache.
in
Cache at line 116
bool
exists(string $key)
Checks if an item exists in the cache.
in
Cache at line 128
flush()
Removes all values from the cache.
in
Cache at line 140
ItemInterface
getItem(string $key)
Gets a value from the cache.
in
Cache at line 145
save(CacheItemInterface $item)
No description
in
Cache at line 153
enable()
Enables the cache.
in
Cache at line 164
disable()
Disables the cache.
in
Cache at line 179
bool
isEnabled()
Returns true if the cache is enabled, false if not.
in
Cache at line 187
static
disableAll()
Disables all cache levels.
in
Cache at line 197
static
enableAll()
Enables all cache levels.