Difference between revisions of "JCache::getInstance"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Returns a reference to a cache adapter object, always creating it. | Returns a reference to a cache adapter object, always creating it. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function getInstance ( | public static function getInstance ( | ||
Line 36: | Line 34: | ||
* '''Since''' {{JVer|11.1 }} | * '''Since''' {{JVer|11.1 }} | ||
* '''Referenced by''' | * '''Referenced by''' | ||
− | ** [[JFactory::getCache | + | ** [[API17:JFactory::getCache|JFactory::getCache]] |
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JCache::getInstance source code''' on [[jplatform:cache/cache.php#cl-76|BitBucket]] | * {{JVer|11.1}} '''JCache::getInstance source code''' on [[jplatform:cache/cache.php#cl-76|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JCache | + | * {{JVer|11.1}} Class [[API17:JCache|JCache]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Cache | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] |
− | * [[JCache::getInstance|Other versions of JCache::getInstance]] | + | * [[API17:JCache::getInstance|Other versions of JCache::getInstance]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCache::getInstance | category=JCache::getInstance | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 57: | Line 53: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:24, 24 March 2017
The "API17" 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.
JCache::getInstance[edit]
Description[edit]
Returns a reference to a cache adapter object, always creating it.
public static function getInstance (
$type= 'output'
$options=array
)
Parameter | Type | Default | Description |
---|---|---|---|
$type | string | 'output' | The cache object type to instantiate |
$options | array() |
See also[edit]
- JCache::getInstance source code on BitBucket
- Class JCache
- Subpackage Cache
- Other versions of JCache::getInstance
User contributed notes[edit]
Code Examples[edit]