API16

JCache: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JCache}} ===Defined in=== librari...
 
Doxiki (talk | contribs)
No edit summary
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 10:00, 30 March 2010

[Edit Descripton] Template:Description:JCache

Defined in

libraries/joomla/cache/cache.php

Methods

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

jimport( 'joomla.cache.cache' );

[Edit See Also] Template:SeeAlso:JCache

Examples

<CodeExamplesForm />