JCacheStorage::getInstance: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Returns a cache storage handler object, only creating it if it doesn't already exist. | Returns a cache storage handler object, only creating it if it doesn't already exist. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 40: | Line 40: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | ||
* [[API17:JCacheStorage::getInstance|Other versions of JCacheStorage::getInstance]] | * [[API17:JCacheStorage::getInstance|Other versions of JCacheStorage::getInstance]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheStorage::getInstance | category=JCacheStorage::getInstance | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:26, 25 March 2017
JCacheStorage::getInstance
Description
Returns a cache storage handler object, only creating it if it doesn't already exist.
public static function getInstance (
$handler=null
$options=array
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $handler | string | null | The cache storage handler to instantiate |
| $options | array() |
- Returns object A JCacheStorageHandler object
- Defined on line 94 of libraries/joomla/cache/storage.php
- Since

- Referenced by
See also
JCacheStorage::getInstance source code on BitBucket
Class JCacheStorage
Subpackage Cache- Other versions of JCacheStorage::getInstance
User contributed notes
Code Examples