Difference between revisions of "JCache"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JCache}}
===Defined in===
librari...) |
|||
Line 42: | Line 42: | ||
|Returns a reference to a cache adapter object, always creating it | |Returns a reference to a cache adapter object, always creating it | ||
|} | |} | ||
+ | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.cache' );</source> | <source lang="php">jimport( 'joomla.cache.cache' );</source> |
Revision as of 05:00, 30 March 2010
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JCache
Defined in[edit]
libraries/joomla/cache/cache.php
Methods[edit]
Method name | Description |
---|---|
__construct | Constructor |
getStores | Get the storage handlers |
setCaching | Set caching enabled state |
setLifeTime | Set cache lifetime |
get | Get cached data by id and group |
store | Store the cached data by id and group |
remove | Remove a cached data entry by id and group |
clean | Clean cache for a group given a mode. |
gc | Garbage collect expired cache data |
getInstance | Returns a reference to a cache adapter object, always creating it |
Importing[edit]
jimport( 'joomla.cache.cache' );
[Edit See Also] Template:SeeAlso:JCache
Examples[edit]
<CodeExamplesForm />