You are here

public function Cache::getStats in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php \Doctrine\Common\Cache\Cache::getStats()

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 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Retrieves cached information from the data store.

File

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

Class

Cache
Interface for cache drivers.

Namespace

Doctrine\Common\Cache

Code

public function getStats();