JCacheStorageMemcache: Difference between revisions
From Joomla! Documentation
No edit summary |
m clean up |
||
| Line 1: | Line 1: | ||
[[JCacheStorageMemcache]] is a concrete cache storage handler, using the [http://www.danga.com/memcached/ Memcached caching system]. See also the [http://www.php.net/manual/en/book.memcache.php PHP Memcache Manual]. | |||
===Defined in=== | ===Defined in=== | ||
| Line 43: | Line 40: | ||
<source lang="php">jimport( 'joomla.cache.storage.memcache' );</source> | <source lang="php">jimport( 'joomla.cache.storage.memcache' );</source> | ||
{{subst:SeeAlso:JCacheStorageMemcache}} | |||
{{SeeAlso:JCacheStorageMemcache}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 13:15, 24 March 2017
JCacheStorageMemcache is a concrete cache storage handler, using the Memcached caching system. See also the PHP Memcache Manual.
Defined in
libraries/joomla/cache/storage/memcache.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor |
| get | Get cached data from memcache by id and group |
| store | Store the data to memcache by id and group |
| remove | Remove a cached data entry by id and group |
| clean | Clean cache for a group given a mode. |
| gc | Garbage collect expired cache data |
| getConnection | return memcache connection object |
| getConfig | Return memcache related configuration |
| test | Test to see if the cache storage is available. |
Importing
jimport( 'joomla.cache.storage.memcache' );
{{subst:SeeAlso:JCacheStorageMemcache}}
Examples
<CodeExamplesForm />