API15

JCacheStorageMemcache/getConfig: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Return memcache related configuration <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JCacheStorageMemcache/getConfig|Edit Descript...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JCacheStorageMemcache/getConfig|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JCacheStorageMemcache/getConfig}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 41: Line 41:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JCacheStorageMemcache/getConfig|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JCacheStorageMemcache/getConfig}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getConfig
  category=getConfig
  category=JCacheStorageMemcache
  category=JCacheStorageMemcache
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 00:23, 25 March 2017

Description

Return memcache related configuration

[<! removed edit link to red link >]

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

Syntax

& getConfig()


Returns

array options

Defined in

libraries/joomla/cache/storage/memcache.php

Importing

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

Source Body

function &getConfig() {
        static $params = null;
        if(is_null($params)) {
                $config =& JFactory::getConfig();
                $params = $config->getValue('config.memcache_settings');
                if (!is_array($params)) {
                        $params = unserialize(stripslashes($params));
                }

                if (!$params) {
                        $params = array();
                }
                $params['hash'] = $config->getValue('config.secret');
        }
        return $params;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples