MediaWiki  1.23.2
mcc.php File Reference

memcached diagnostic tool More...

Go to the source code of this file.

Functions

 mccGetHelp ( $command)
 
 mccShowUsage ()
 Show this command line tool usage. More...
 

Variables

if( $line===false$args = explode( ' ', $line )
 
 $cache = isset( $options['cache'] ) ? $options['cache'] : null
 
 $command = array_shift( $args )
 
 $debug = isset( $options['debug'] )
 
 $help = isset( $options['help'] )
 
 $line = Maintenance::readconsole()
 
if( $help) $mcc
 
 $options = getopt( '', array( 'debug', 'help', 'cache:' ) )
 
 $quit = false
 
 $showhelp = false
 
 do
 
if( $cache) elseif( $wgMainCacheType===CACHE_MEMCACHED) elseif(isset( $wgObjectCaches[$wgMainCacheType]['servers'])) else
 

Detailed Description

memcached diagnostic tool

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Todo:
document

Definition in file mcc.php.

Function Documentation

◆ mccGetHelp()

mccGetHelp (   $command)

Definition at line 82 of file mcc.php.

References $command, $output, array(), and as.

Referenced by mccShowUsage().

◆ mccShowUsage()

mccShowUsage ( )

Show this command line tool usage.

Definition at line 61 of file mcc.php.

References cache, connection, is(), mccGetHelp(), memcached, on, and that.

Variable Documentation

◆ $args

if ($line===false) $args = explode( ' ', $line )

Definition at line 123 of file mcc.php.

◆ $cache

$cache = isset( $options['cache'] ) ? $options['cache'] : null

Definition at line 32 of file mcc.php.

Referenced by MemcLockManager\__construct(), LinkBatch\addResultToCache(), ProcessCacheLRUTest\assertCacheEmpty(), ResourceLoaderFileModule\compileLESSFile(), MultiWriteBagOStuff\deleteObjectsExpiringBefore(), GenerateJsonI18n\doShim(), MultiWriteBagOStuff\doWrite(), McTest\execute(), RebuildFileCache\execute(), LinkBatch\executeInto(), ProcessCacheLRUTest\fillCache(), ResourceLoader\filter(), MultiWriteBagOStuff\get(), BacklinkCache\get(), MessageCache\getAllMessageKeys(), CoreParserFunctions\getCachedRevisionObject(), SpecialVersion\getCreditsForExtension(), ResourceLoaderModule\getDefinitionMtime(), IcuCollation\getFirstLetterData(), ResourceLoaderModule\getHashMtime(), BitmapHandler\getMagickVersion(), UIDGenerator\getSequentialPerNodeIDs(), SiteSQLStore\getSites(), DependencyWrapper\getValueFromCache(), MessageCache\isCacheExpired(), User\isEveryoneAllowed(), Language\isValidCode(), MessageCache\load(), MessageCache\loadFromDB(), SiteSQLStore\loadSites(), LocalFile\lock(), MediaWiki\main(), ResourceFileCache\newFromContext(), ObjectFileCache\newFromKey(), Title\newFromText(), HTMLFileCache\newFromTitle(), ChangesList\numberofWatchingusers(), HistoryAction\onView(), CoreParserFunctions\pagesincategory(), DBConnectionError\reportHTML(), SiteSQLStore\reset(), LocalFile\saveToCache(), MessageCache\saveToCaches(), FileBackendStore\setFileCache(), Article\showPatrolFooter(), DependencyWrapper\storeToCache(), ProcessCacheLRUTest\testBumpExistingKeyToTop(), ProcessCacheLRUTest\testFillingCache(), LocalisationCacheTest\testPuralRulesFallback(), ProcessCacheLRUTest\testRecentlyAccessedKeyStickIn(), ProcessCacheLRUTest\testReplaceExistingKeyInAFullCacheShouldBumpToTop(), ProcessCacheLRUTest\testReplaceExistingKeyShouldBumpEntryToTop(), Article\tryFileCache(), and ResourceLoaderModule\validateScriptFile().

◆ $command

$command = array_shift( $args )

Definition at line 124 of file mcc.php.

Referenced by mccGetHelp().

◆ $debug

$debug = isset( $options['debug'] )

Definition at line 30 of file mcc.php.

◆ $help

$help = isset( $options['help'] )

◆ $line

Definition at line 118 of file mcc.php.

◆ $mcc

if ($help) $mcc
Initial value:
'persistent' => true,
'debug' => $debug,
) )

Definition at line 38 of file mcc.php.

Referenced by McTest\execute().

◆ $options

$options = getopt( '', array( 'debug', 'help', 'cache:' ) )

Definition at line 28 of file mcc.php.

◆ $quit

$quit = false

Definition at line 116 of file mcc.php.

◆ $showhelp

$showhelp = false

Definition at line 115 of file mcc.php.

◆ do

do
Initial value:
{
$bad = false

Definition at line 113 of file mcc.php.

◆ else

switch ($command) if ($bad) else
Initial value:
{
print "MediaWiki isn't configured for Memcached usage\n"

Definition at line 53 of file mcc.php.

MWMemcached
This is the PHP client for memcached - a distributed memory cache daemon.
Definition: MemcachedClient.php:76
$debug
$debug
Definition: mcc.php:30
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.