# Memcache::getStats

# memcache_get_stats

(PECL memcache >= 0.2.0)

Memcache::getStats -- memcache_get_stats — Get statistics of the server

### Beschreibung

Memcache::getStats(string `$type` = ?, int `$slabid` = ?, int `$limit` = 100): array|false
memcache_get_stats(
Memcache `$memcache`,
string `$type` = ?,
int `$slabid` = ?,
int `$limit` = 100
): array|false

Memcache::getStats() returns an associative array with server's statistics. Array keys correspond to stats parameters and values to parameter's values.

### Parameter-Liste

`type`
  The type of statistics to fetch. Valid values are {reset, malloc, maps, cachedump, slabs, items, sizes}. According to the memcached protocol spec these additional arguments "are subject to change for the convenience of memcache developers".
`slabid`
  Used in conjunction with `type` set to cachedump to identify the slab to dump from. The cachedump command ties up the server and is strictly to be used for debugging purposes.
`limit`
  Used in conjunction with `type` set to cachedump to limit the number of entries to dump.

### Rückgabewerte

Returns an associative array of server statisticsBei einem Fehler wird `false` zurückgegeben..

### Siehe auch

- Memcache::getVersion() - Return version of the server
- Memcache::getExtendedStats() - Get statistics from all servers in pool

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open