JCacheStorage::get: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Get cached data by id and group. | Get cached data by id and group. | ||
<source lang="php"> | <source lang="php"> | ||
public | public function get ( | ||
$id | |||
$group | |||
$checkTime=true | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 37: | Line 36: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' mixed Boolean false on failure or a cached data object | |||
mixed Boolean false on failure or a cached data object | * '''Defined''' on line 139 of libraries/joomla/cache/storage.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/cache/storage.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JCacheStorage::get source code''' on [[jplatform:cache/storage.php#cl-131|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JCacheStorage|JCacheStorage]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | |||
* | * [[API17:JCacheStorage::get|Other versions of JCacheStorage::get]] | ||
* [[JCacheStorage::get|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheStorage::get | category=JCacheStorage::get | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:25, 25 March 2017
JCacheStorage::get
Description
Get cached data by id and group.
public function get (
$id
$group
$checkTime=true
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $id | string | The cache data id | |
| $group | string | The cache data group | |
| $checkTime | boolean | true | True to verify cache time expiration threshold |
- Returns mixed Boolean false on failure or a cached data object
- Defined on line 139 of libraries/joomla/cache/storage.php
- Since

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