def add(self, zenpy_object):
object_type = get_object_type(zenpy_object)<EOL>if object_type not in self.mapping or self.disabled:<EOL><INDENT>return<EOL><DEDENT>attr_name = self._cache_key_attribute(object_type)<EOL>cache_key = getattr(zenpy_object, attr_name)<EOL>log.debug("<STR_LIT>".format(zenpy_object.__class__.__name__, attr_name, cache_key))<EOL>self.mapping[object_type][cache_key] = zenpy_object<EOL>
Add a Zenpy object to the relevant cache. If no cache exists for this object nothing is done.