JCacheStorageXcache: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=={{JVer|11.1}} JCacheStorageXcache== | |||
===Description=== | |||
{{ | |||
=== | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
!Visibility | |||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
|[[JCacheStorageXcache::clean | |public | ||
|[[API17:JCacheStorageXcache::clean|clean]] | |||
|Clean cache for a group given a mode. | |Clean cache for a group given a mode. | ||
|- | |- | ||
|[[JCacheStorageXcache::gc | |public | ||
|[[API17:JCacheStorageXcache::gc|gc]] | |||
|Garbage collect expired cache data. | |Garbage collect expired cache data. | ||
|- | |- | ||
|[[JCacheStorageXcache::get | |public | ||
|[[API17:JCacheStorageXcache::get|get]] | |||
|Get cached data by id and group. | |Get cached data by id and group. | ||
|- | |- | ||
|[[JCacheStorageXcache::getAll | |public | ||
|[[API17:JCacheStorageXcache::getAll|getAll]] | |||
|Get all cached data. | |Get all cached data. | ||
|- | |- | ||
|[[JCacheStorageXcache::remove | |public | ||
|[[API17:JCacheStorageXcache::remove|remove]] | |||
|Remove a cached data entry by id and group. | |Remove a cached data entry by id and group. | ||
|- | |- | ||
|[[JCacheStorageXcache::store | |public | ||
|[[API17:JCacheStorageXcache::store|store]] | |||
|Store the data by id and group. | |Store the data by id and group. | ||
|- | |- | ||
|[[JCacheStorageXcache::test | |public static | ||
|[[API17:JCacheStorageXcache::test|test]] | |||
|Test to see if the cache storage is available. | |Test to see if the cache storage is available. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/cache/storage/xcache.php | |||
* '''Extends''' [[API17:JCacheStorage|JCacheStorage]] | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.storage.xcache' );</source> | <source lang="php">jimport( 'joomla.cache.storage.xcache' );</source> | ||
===See also=== | ===See also=== | ||
* [[ | * {{JVer|11.1}} '''JCacheStorageXcache source code''' on [[jplatform:cache/storage/xcache.php|BitBucket]] | ||
{{ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Cache|Cache]] | ||
* [[API17:JCacheStorageXcache|Other versions of JCacheStorageXcache]] | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheStorageXcache | category=JCacheStorageXcache | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:28, 25 March 2017
JCacheStorageXcache
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | clean | Clean cache for a group given a mode. |
| public | gc | Garbage collect expired cache data. |
| public | get | Get cached data by id and group. |
| public | getAll | Get all cached data. |
| public | remove | Remove a cached data entry by id and group. |
| public | store | Store the data by id and group. |
| public static | test | Test to see if the cache storage is available. |
- Defined in libraries/joomla/cache/storage/xcache.php
- Extends JCacheStorage
Importing
jimport( 'joomla.cache.storage.xcache' );
See also
JCacheStorageXcache source code on BitBucket
Subpackage Cache- Other versions of JCacheStorageXcache
User contributed notes
Code Examples