You are here

public static function MemcacheStorageAPI::flushCluster in Memcache Storage 7

Immediately invalidates all existing items in a selected memcached cluster.

Parameters

$cluster_name: Name of memcached cluster.

Return value

bool Status of operation.

2 calls to MemcacheStorageAPI::flushCluster()
MemcacheStorageAPI::flushClusters in ./memcache_storage.api.inc
Immediately invalidates all existing items in all memcached clusters.
memcache_storage_admin_flush_selected_clusters in ./memcache_storage.admin.inc
Flush selected memcached clusters.

File

./memcache_storage.api.inc, line 479
Provide class that processes memcached operations.

Class

MemcacheStorageAPI
Integrates with memcache API.

Code

public static function flushCluster($cluster_name) {
  $memcache = self::connectToCluster($cluster_name);
  if (!$memcache) {
    return FALSE;
  }
  return @$memcache
    ->flush();
}