def clear(self, *resource_types):
resource_types = resource_types or tuple(self.__caches.keys())<EOL>for cls in resource_types:<EOL><INDENT>self.__caches[cls].clear()<EOL>del self.__caches[cls]<EOL><DEDENT>
Clear cache for each provided APIResource class, or all resources if no classes are provided