public function DriverBase::statsTypes in Memcache API and Integration 8.2
Returns an array of available statistics types.
File
- src/
Driver/ DriverBase.php, line 269
Class
- DriverBase
- Class DriverBase.
Namespace
Drupal\memcache\DriverCode
public function statsTypes() {
if ($this->memcache instanceof \Memcache) {
// TODO: Determine which versions of the PECL memcache extension have
// these other stats types: 'malloc', 'maps', optionally detect this
// version and expose them. These stats are "subject to change without
// warning" unfortunately.
return [
'default',
'slabs',
'items',
'sizes',
];
}
else {
// The Memcached PECL extension only offers the default statistics.
return [
'default',
];
}
}