You are here

function _memcache_is_available in Memcache API and Integration 7

Check if memcache.inc has been included.

4 calls to _memcache_is_available()
drush_memcached_stats_validate in ./memcache.drush.inc
Implements drush_hook_COMMAND_validate().
drush_memcache_flush in ./memcache.drush.inc
Invalidate all items in specified bin.
drush_memcache_flush_validate in ./memcache.drush.inc
Implements drush_hook_COMMAND_validate().
drush_memcache_stats in ./memcache.drush.inc
Display memcache statistics.

File

./memcache.drush.inc, line 121
Provides a drush interface to Memcached.

Code

function _memcache_is_available() {
  if (!class_exists('MemCacheDrupal', FALSE)) {
    return drush_set_error("MemCacheDrupal class is not available", "Please review README.txt and properly enable memcache.");
  }
  return TRUE;
}