def invalid_project_cache(self, project_id): """当变更项目信息时,详细缓存信息失效 """ region.delete(f"BK_DEVOPS_BCS:HAS_BCS_SERVICE:{project_id}")
def _invalid_project_cache(self, project_id): """当变更项目信息时,详细缓存信息失效""" region.delete(bcs_project_cache_key.format(project_id_or_code=project_id)) # NOTE: 后续permission统一后,可以删除下面的缓存标识 region.delete(f"BK_DEVOPS_BCS:HAS_BCS_SERVICE:{project_id}")