Jump to >

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

True if cache stats are supported for the current cache setup. False if 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), where stats is a dictionary with statistics from the cache server.

If no memcached servers are configured, this will return None instead.

Return type

list of tuple