JCacheStorageApc/1.5
From Joomla! Documentation
< JCacheStorageApc(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JCacheStorageApc== | ||
| + | ===Description=== | ||
| + | {{Description:JCacheStorageApc}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JCacheStorageApc|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JCacheStorageApc|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::__construct/1.5|__construct]] | |[[JCacheStorageApc::__construct/1.5|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::_getCacheId/1.5|_getCacheId]] | |[[JCacheStorageApc::_getCacheId/1.5|_getCacheId]] | ||
|Get a cache_id string from an id/group pair. | |Get a cache_id string from an id/group pair. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::_setExpire/1.5|_setExpire]] | |[[JCacheStorageApc::_setExpire/1.5|_setExpire]] | ||
|Set expire time on each call since memcache sets it on cache creation. | |Set expire time on each call since memcache sets it on cache creation. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::clean/1.5|clean]] | |[[JCacheStorageApc::clean/1.5|clean]] | ||
|Clean cache for a group given a mode. | |Clean cache for a group given a mode. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::get/1.5|get]] | |[[JCacheStorageApc::get/1.5|get]] | ||
|Get cached data from APC by id and group. | |Get cached data from APC by id and group. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::remove/1.5|remove]] | |[[JCacheStorageApc::remove/1.5|remove]] | ||
|Remove a cached data entry by id and group. | |Remove a cached data entry by id and group. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::store/1.5|store]] | |[[JCacheStorageApc::store/1.5|store]] | ||
|Store the data to APC by id and group. | |Store the data to APC by id and group. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheStorageApc::test/1.5|test]] | |[[JCacheStorageApc::test/1.5|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/apc.php | ||
| + | * '''Extends''' [[JCacheStorage/1.5|JCacheStorage]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.storage.apc' );</source> | <source lang="php">jimport( 'joomla.cache.storage.apc' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JCacheStorageApc''' on [http://api.joomla.org/Joomla-Framework/Cache/JCacheStorageApc.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JCacheStorageApc source code''' on [[jframework15:cache/storage/apc.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Cache/1.5|Cache]] | ||
| + | * [[JCacheStorageApc|Other versions of JCacheStorageApc]] | ||
| + | {{SeeAlso:JCacheStorageApc}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JCacheStorageApc|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JCacheStorageApc|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 59: | Line 67: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JCacheStorageApc]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JCacheStorageApc]]</noinclude> | ||
Revision as of 18:06, 25 April 2011
JCacheStorageApc
Description
JCacheStorageApc is a concrete cache storage handler using PHP Cache (APC). [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Constructor. |
| public | _getCacheId | Get a cache_id string from an id/group pair. |
| public | _setExpire | Set expire time on each call since memcache sets it on cache creation. |
| public | clean | Clean cache for a group given a mode. |
| public | get | Get cached data from APC by id and group. |
| public | remove | Remove a cached data entry by id and group. |
| public | store | Store the data to APC by id and group. |
| public | test | Test to see if the cache storage is available. |
- Defined in libraries/joomla/cache/storage/apc.php
- Extends JCacheStorage
Importing
jimport( 'joomla.cache.storage.apc' );
See also
-
JCacheStorageApc on api.joomla.org
-
JCacheStorageApc source code on JoomlaCode
-
Subpackage Cache
- Other versions of JCacheStorageApc
SeeAlso:JCacheStorageApc [Edit See Also]
User contributed notes
<CodeExamplesForm />