public function dbSize($idServer = null)
    {
        if (is_null($idServer)) {
            $servers = $this->getServerConfig();

            $dbsize = array();
            foreach (array_keys($servers) as $idServer) {
                $redis = $this->getRedisFromServerConfig($idServer);

                $dbsize[$idServer] = $redis->dbsize();
            }
        } else {
            $redis = $this->getRedisFromServerConfig($idServer);

            $dbsize = $redis->dbsize();
        }

        return $dbsize;
    }
public function dbSize($idServer = null)
    {
        if (is_null($idServer)) {
            $servers = $this->getServerConfig();

            $dbsize = array();
            foreach (array_keys($servers) as $idServer) {
                $redis = $this->getRedisFromServerConfig($idServer);

                $dbsize[$idServer] = $redis->dbsize();
            }
        } else {
            $redis = $this->getRedisFromServerConfig($idServer);

            $dbsize = $redis->dbsize();
        }

        return $dbsize;
    }
public function dbSize ( $ idServer = null ) { if ( is_null ( $ idServer ) ) { $ servers = $ this -> getServerConfig ( ) ; $ dbsize = array ( ) ; foreach ( array_keys ( $ servers ) as $ idServer ) { $ redis = $ this -> getRedisFromServerConfig ( $ idServer ) ; $ dbsize [ $ idServer ] = $ redis -> dbsize ( ) ; } } else { $ redis = $ this -> getRedisFromServerConfig ( $ idServer ) ; $ dbsize = $ redis -> dbsize ( ) ; } return $ dbsize ; }
return an array or server with the number of keys stored on each

@param string $idServer Id du server

@return array / integer
return an array or server with the number of keys stored on each