CacheController
Public cache handler
since |
1.7.0 |
---|---|
note |
As of 4.0 this class will be abstract |
package |
Joomla CMS |
Methods
__call
Magic method to proxy CacheController method calls to Cache
__call(string name, array arguments) : mixed
since |
1.7.0 |
---|
Arguments
- name
string
Name of the function- arguments
array
Array of arguments for the function
Response
mixed
__construct
Constructor
__construct(array options) : mixed
since |
1.7.0 |
---|
Arguments
- options
array
Array of options
Response
mixed
addIncludePath
Add a directory where Cache should search for controllers. You may either pass a string or an array of directories.
addIncludePath(array|string path = '') : array
static deprecated
since |
1.7.0 |
---|---|
deprecated |
5.0 Use the cache controller factory instead |
Arguments
- path
array|string
A path to search.
Response
array
An array with directory elements
getInstance
Returns a reference to a cache adapter object, always creating it
getInstance(string type = 'output', array options = array()) : \Joomla\CMS\Cache\CacheController
static deprecated
since |
1.7.0 |
---|---|
throws |
|
deprecated |
5.0 Use the cache controller factory instead |
Arguments
- type
string
The cache object type to instantiate; default is output.- options
array
Array of options
Response
\Joomla\CMS\Cache\CacheController