JCacheCallback/1.5
From Joomla! Documentation
< JCacheCallback(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JCacheCallback== | ||
| + | ===Description=== | ||
| + | {{Description:JCacheCallback}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JCacheCallback|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JCacheCallback|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JCacheCallback::_makeId/1.5|_makeId]] | |[[JCacheCallback::_makeId/1.5|_makeId]] | ||
|Generate a callback cache id. | |Generate a callback cache id. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheCallback::call/1.5|call]] | |[[JCacheCallback::call/1.5|call]] | ||
|Executes a cacheable callback if not found in cache else returns cached output and result. | |Executes a cacheable callback if not found in cache else returns cached output and result. | ||
|- | |- | ||
| + | |public | ||
|[[JCacheCallback::get/1.5|get]] | |[[JCacheCallback::get/1.5|get]] | ||
|Executes a cacheable callback if not found in cache else returns cached output and result. | |Executes a cacheable callback if not found in cache else returns cached output and result. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/cache/handler/callback.php | ||
| + | * '''Extends''' [[JCache/1.5|JCache]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.cache.handler.callback' );</source> | <source lang="php">jimport( 'joomla.cache.handler.callback' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JCacheCallback''' on [http://api.joomla.org/Joomla-Framework/Cache/JCacheCallback.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JCacheCallback source code''' on [[jframework15:cache/handler/callback.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Cache/1.5|Cache]] | ||
| + | * [[JCacheCallback|Other versions of JCacheCallback]] | ||
| + | {{SeeAlso:JCacheCallback}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JCacheCallback|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JCacheCallback|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 44: | Line 47: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JCacheCallback]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JCacheCallback]]</noinclude> | ||
Revision as of 18:06, 25 April 2011
JCacheCallback
Description
JCacheCallback is a concrete cache handler. It caches and returns the output and results of callback functions. [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | _makeId | Generate a callback cache id. |
| public | call | Executes a cacheable callback if not found in cache else returns cached output and result. |
| public | get | Executes a cacheable callback if not found in cache else returns cached output and result. |
- Defined in libraries/joomla/cache/handler/callback.php
- Extends JCache
Importing
jimport( 'joomla.cache.handler.callback' );
See also
-
JCacheCallback on api.joomla.org
-
JCacheCallback source code on JoomlaCode
-
Subpackage Cache
- Other versions of JCacheCallback
SeeAlso:JCacheCallback [Edit See Also]
User contributed notes
<CodeExamplesForm />