function memcache_drush_command in Memcache API and Integration 7
Implements hook_drush_command().
File
- ./
memcache.drush.inc, line 10 - Provides a drush interface to Memcached.
Code
function memcache_drush_command() {
$items['memcache-stats'] = array(
'description' => dt('Retrieve statistics from memcache.'),
'arguments' => array(
'bin' => dt('Optionally specify which bin; defaults to \'cache\'.'),
'type' => dt('Optionally specify type of statistics; one of {default, reset, malloc, slabs, cachedump, items, sizes}.'),
),
'options' => array(
'interactive' => dt('Interactivly specify which type of statistics to display.'),
'aggregate' => dt('Included combined statistics from all servers.'),
),
'required-arguments' => 0,
'examples' => array(
'memcache-stats' => 'Display raw statistics.',
'memcache-stats --aggregate' => 'Display raw statistics for all servers and combined totals',
'memcache-stats --interactive' => 'Interactively select which type of statistics to display.',
'memcache-stats cache slabs' => 'Display slabs allocated for cache bin.',
),
'aliases' => array(
'mcs',
),
);
$items['memcache-flush'] = array(
'description' => dt('Flush all objects from a bin.'),
'arguments' => array(
'bin' => dt('Optionally specify which bin to flush; defaults to \'cache\'.'),
),
'required-arguments' => 0,
'examples' => array(
'memcache-clear' => 'Flush all items in \'cache\' bin.',
'memcache-clear cache-page' => 'Flush all items in \'cache-page\' bin.',
),
'aliases' => array(
'mcf',
),
);
return $items;
}