code: def in_cache(self, zenpy_object):
          
          object_type = get_object_type(zenpy_object)
          cache_key_attr = self._cache_key_attribute(object_type)
          return self.get(object_type, getattr(zenpy_object, cache_key_attr)) is not None
docs: Determine whether or not this object is in the cache