meterer.get_limits_for_pool(pool) -> dict

        Returns the limits for the given pool. If the pool does not have limits
        set, {} is returned.

        The resulting dict has the following format. Each item is optional and
        indicates no limit for the specified time period.
        {
            "year": int,
            "month": int,
            "week": int,
            "day": int,
            "hour": int,
        }

def get_limits_for_pool(self, pool):
        """
        meterer.get_limits_for_pool(pool) -> dict

        Returns the limits for the given pool. If the pool does not have limits
        set, {} is returned.

        The resulting dict has the following format. Each item is optional and
        indicates no limit for the specified time period.
        {
            "year": int,
            "month": int,
            "week": int,
            "day": int,
            "hour": int,
        }
        """
        pool_limits = self.cache.get("LIMIT:%s" % pool)
        if pool_limits is None:
            return {}

        return json_loads(pool_limits)