def resource_size(self, resource_name): 
cached_size = self.get_cached_resource_size(resource_name)<EOL>if cached_size is not None:<EOL><INDENT>return cached_size["<STR_LIT:size>"]<EOL><DEDENT>actual_size = self.get_actual_resource_size(resource_name)<EOL>self.set_cached_resource_size(resource_name, actual_size)<EOL>return actual_size<EOL>
meterer.resource_size(resource_name) -> int

Retrieve the size of the given resource.