def set_cached_resource_size(self, resource_name, size):
size_data = json_dumps({"<STR_LIT:size>": size, "<STR_LIT>": time()})<EOL>self.cache.set(<EOL>"<STR_LIT>" % resource_name, size_data,<EOL>ex=self.size_cache_timeout)<EOL>return<EOL>
meterer.set_cached_resource_size(resource_name)

Set cached information about the given resource.