function memcache_storage_drush_command in Memcache Storage 7
Implements hook_drush_command().
File
- ./
memcache_storage.drush.inc, line 11 - This is the drush integration for the Memcache Storage module.
Code
function memcache_storage_drush_command() {
$items['memcache-storage-flush'] = array(
'description' => 'Flushes all memcached data',
'examples' => array(
'drush memcached-flush' => 'Flushes all data stored in memcached.',
'drush ms-flush' => 'Flushes all data stored in memcached.',
),
'aliases' => array(
'ms-flush',
),
'drupal dependencies' => array(
'memcache_storage',
),
'callback' => 'memcache_storage_flush_all_cache',
);
$items['memcache-storage-clear-cache'] = array(
'description' => 'Removes cache item from cache bin.',
'examples' => array(
'drush memcache-storage-clear-cache panels:223' => 'Remove cache with id "panels:223" from bin named "cache".',
'drush ms-cc module_implements cache_bootstrap' => 'Remove cache with id "module_implements" from bin named "cache_bootstrap".',
),
'aliases' => array(
'ms-cc',
),
'drupal dependencies' => array(
'memcache_storage',
),
'callback' => 'drush_memcache_storage_clear_cache',
);
$items['memcache-storage-flush-bin'] = array(
'description' => 'Invalidates all data stored in the selected cache bin.',
'examples' => array(
'drush memcache-storage-flush-bin' => 'Invalidate all data in the cache bin named "cache".',
'drush ms-fb cache_bootstrap' => 'Invalidate all data in the cache bin named "cache_bootstrap".',
),
'aliases' => array(
'ms-fb',
),
'drupal dependencies' => array(
'memcache_storage',
),
'callback' => 'drush_memcache_storage_flush_bin',
);
return $items;
}