API16

API16:JCacheStorageMemcache/get

From Joomla! Documentation

Revision as of 22:39, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Get cached data from memcache by id and group <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JCacheStorageMemcache/get|Edit Descri...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get cached data from memcache by id and group

[Edit Descripton]

Template:Description:JCacheStorageMemcache/get

Syntax

get($id, $group, $checkTime)
Parameter Name Default Value Description
$id $id The cache data id
$group $group The cache data group
$checkTime $checkTime True to verify cache time expiration threshold

Returns

mixed Boolean false on failure or a cached data string

Defined in

libraries/joomla/cache/storage/memcache.php

Importing

jimport( 'joomla.cache.storage.memcache' );

Source Body

function get($id, $group, $checkTime)
{
        $cache_id = $this->_getCacheId($id, $group);
        return $this->_db->get($cache_id);
}

[Edit See Also] Template:SeeAlso:JCacheStorageMemcache/get

Examples

<CodeExamplesForm />