Doctrine\Common\Cache\MongoDBCache::doGetStats PHP Method

doGetStats() protected method

protected doGetStats ( )
    protected function doGetStats()
    {
        $serverStatus = $this->collection->db->command(['serverStatus' => 1, 'locks' => 0, 'metrics' => 0, 'recordStats' => 0, 'repl' => 0]);
        $collStats = $this->collection->db->command(['collStats' => 1]);
        return [Cache::STATS_HITS => null, Cache::STATS_MISSES => null, Cache::STATS_UPTIME => isset($serverStatus['uptime']) ? (int) $serverStatus['uptime'] : null, Cache::STATS_MEMORY_USAGE => isset($collStats['size']) ? (int) $collStats['size'] : null, Cache::STATS_MEMORY_AVAILABLE => null];
    }