API16

JCacheStorageMemcache/test: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 30: Line 30:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=test
  category=test
  category=JCacheStorageMemcache
  category=JCacheStorageMemcache
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:23, 25 March 2017

Description

Test to see if the cache storage is available.


<! removed transcluded page call, red link never existed >

Syntax

test()


Returns

boolean True on success, false otherwise.

Defined in

libraries/joomla/cache/storage/memcache.php

Importing

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

Source Body

function test()
{
        return (extension_loaded('memcache') && class_exists('Memcache'));
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples