Difference between revisions of "JCacheStorage::lock"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Lock cached item. | Lock cached item. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function lock ( |
+ | $id | ||
+ | $group | ||
+ | $locktime | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 37: | Line 36: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' boolean True on success, false otherwise. | |
− | boolean True on success, false otherwise. | + | * '''Defined''' on line 230 of libraries/joomla/cache/storage.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/cache/storage.php | ||
− | * | ||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JCacheStorage::lock source code''' on [[jplatform:cache/storage.php#cl-222|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JCacheStorage|JCacheStorage]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Cache|Cache]] | |
− | * | + | * [[API17:JCacheStorage::lock|Other versions of JCacheStorage::lock]] |
− | * [[JCacheStorage::lock|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JCacheStorage::lock | category=JCacheStorage::lock | ||
− | + | 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 21:26, 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.
JCacheStorage::lock[edit]
Description[edit]
Lock cached item.
public function lock (
$id
$group
$locktime
)
Parameter | Type | Default | Description |
---|---|---|---|
$id | string | The cache data id | |
$group | string | The cache data group | |
$locktime | integer | Cached item max lock time |
- Returns boolean True on success, false otherwise.
- Defined on line 230 of libraries/joomla/cache/storage.php
- Since
See also[edit]
- JCacheStorage::lock source code on BitBucket
- Class JCacheStorage
- Subpackage Cache
- Other versions of JCacheStorage::lock
User contributed notes[edit]
Code Examples[edit]