You are here

public function CacheProvider::getStats in Plug 7

Retrieves cached information from the data store.

The server's statistics array has the following values:

  • <b>hits</b>

Number of keys that have been requested and found present.

  • <b>misses</b>

Number of items that have been requested and not found.

  • <b>uptime</b>

Time that the server is running.

  • <b>memory_usage</b>

Memory used by this server to store items.

  • <b>memory_available</b>

Memory allowed to use for storage.

@since 2.2

Return value

array|null An associative array with server's statistics if available, NULL otherwise.

Overrides Cache::getStats

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php, line 129

Class

CacheProvider
Base class for cache provider implementations.

Namespace

Doctrine\Common\Cache

Code

public function getStats() {
  return $this
    ->doGetStats();
}