reviewboard.admin.cache_stats¶
-
get_memcached_hosts()[source]¶ Return the hosts currently configured for memcached.
Returns: A list of memcached hostnames or UNIX paths. Return type: list of unicode
-
get_has_cache_stats()[source]¶ Return whether or not cache stats are supported.
Returns: Trueif cache stats are supported for the current cache setup.Falseif cache stats are not supported.Return type: bool
-
get_cache_stats()[source]¶ Return statistics for all supported cache backends.
This only supports memcached backends.
Returns: Each list item corresponds to one configured memcached server. The item is a tuple in the form of (hostname, stats), wherestatsis a dictionary with statistics from the cache server.If no memcached servers are configured, this will return
Noneinstead.Return type: list of tuple