public function MemcacheStatsEvent::__construct in Memcache API and Integration 8.2
MemcacheStatsEvent constructor.
Parameters
array $raw_stats: The Stats Data.
string $bin: The cache bin.
File
- memcache_admin/
src/ Event/ MemcacheStatsEvent.php, line 85
Class
- MemcacheStatsEvent
- Memcache Stats Event
Namespace
Drupal\memcache_admin\EventCode
public function __construct(DrupalMemcacheInterface $memcache, string $bin = 'default') {
$this->memcache = $memcache;
$this->rawStats = $memcache
->stats($bin, 'default', TRUE);
$this->formattedStats = [];
$this->bin = $bin;
}