function redis_drush_command in Redis 7.2
Implements hook_drush_command().
File
- ./
redis.drush.inc, line 10 - Drush integration.
Code
function redis_drush_command() {
$items = array();
$items['redis-flush'] = array(
'description' => 'Flush redis database cache for this site. Caution: can affect other sites using same redis database. Prefer redis-flush-safe.',
'bootstrap' => DRUPAL_BOOTSTRAP_CONFIGURATION,
);
$items['redis-flush-safe'] = array(
'description' => "Flush redis cache for this site using site prefix. It is advised that you use set the 'redis_eval_enabled' variable to 1 before running this command if your Redis server is >=2.6.",
'aliases' => array(
'redis-sflush',
),
'bootstrap' => DRUPAL_BOOTSTRAP_CONFIGURATION,
);
return $items;
}