def get(self, object_type, cache_key):
if object_type not in self.mapping or self.disabled:<EOL><INDENT>return None<EOL><DEDENT>cache = self.mapping[object_type]<EOL>if cache_key in cache:<EOL><INDENT>log.debug("<STR_LIT>" % (object_type.capitalize(), cache_key))<EOL>return cache[cache_key]<EOL><DEDENT>else:<EOL><INDENT>log.debug('<STR_LIT>' % (object_type.capitalize(), cache_key))<EOL><DEDENT>
Query the cache for a Zenpy object