code: def set_object_cache(self, notify_func=None, getbuffer_func=None):
          
          self._object_cache_notify = notify_func
          self._object_cache_getbuffer = getbuffer_func
          # Lifetime of the object cache is managed by us.
          self._object_cache = _ObjectCacheRef(self)
          # Note this doesn't keep a reference to self, to avoid reference
          # cycles.
          ffi.lib.LLVMPY_SetObjectCache(self, self._object_cache)
docs: Set the object cache "notifyObjectCompiled" and "getBuffer"
          callbacks to the given Python functions.