You are here

public function Cache::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.

1 method overrides Cache::getStats()
CacheProvider::getStats in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Retrieves cached information from the data store.

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php, line 111

Class

Cache
Interface for cache drivers.

Namespace

Doctrine\Common\Cache

Code

public function getStats();