@classmethod
    def _flush_cached_by_key(cls, key, force=True):
        """
        Remove the cached reference.

        """
        try:
            if force or not cls._idmapper_recache_protection:
                del cls.__dbclass__.__instance_cache__[key]
        except __HOLE__:
            pass
dataset/ETHPy150Open evennia/evennia/evennia/utils/idmapper/models.py/SharedMemoryModel._flush_cached_by_key