Cache
class Cache
Joomla! Cache base object
Properties
static CacheStorage[] | $_handler | Storage handler | |
array | $_options | Cache options |
Methods
Constructor
Returns a reference to a cache adapter object, always creating it
Get the storage handlers
Set caching enabled state
Get caching state
Set cache lifetime
Check if the cache contains data stored by ID and group
Get cached data by ID and group
Get a list of all cached data
Store the cached data by ID and group
Remove a cached data entry by ID and group
Clean cache for a group given a mode.
Garbage collect expired cache data
Set lock flag on cached item
Unset lock flag on cached item
Get the cache storage handler
Perform workarounds on retrieved cached data
Create workarounds for data to be cached
Create a safe ID for cached data from URL parameters
Set a prefix cache key if device calls for separate caching
Add a directory where Cache should search for handlers. You may either pass a string or an array of directories.
Details
static
CacheController
getInstance(
string $type = 'output',
array $options = array())
Returns a reference to a cache adapter object, always creating it
boolean
contains(
string $id,
string $group = null)
Check if the cache contains data stored by ID and group
boolean
clean(
string $group = null,
string $mode = 'group')
Clean cache for a group given a mode.
group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group
stdClass
lock(
string $id,
string $group = null,
string $locktime = null)
Set lock flag on cached item
static
string
getWorkarounds(
string $data,
array $options = array())
Perform workarounds on retrieved cached data