meterer.get_cached_resource_size(resource_name) -> dict

        Retrieve cached information about the given resource. The resulting
        dict has the following structure:
        {
            "size": int,                # Size of the resource
            "recorded_time": float,     # Unix timestamp when this was generated
        }

def get_cached_resource_size(self, resource_name):
        """
        meterer.get_cached_resource_size(resource_name) -> dict

        Retrieve cached information about the given resource. The resulting
        dict has the following structure:
        {
            "size": int,                # Size of the resource
            "recorded_time": float,     # Unix timestamp when this was generated
        }
        """
        size_data = self.cache.get("SIZE:%s" % resource_name)
        if size_data is None:
            return None

        return json_loads(size_data)