def METHOD_NAME(self):
    """Invalidates all caches."""
    for prefix in ["creds_"]:
        for key in self.rds.scan_iter(match=prefix + "*"):
            logger.info(f"Deleting cache key {key}...")
            self.rds.delete(key)
    self.rds.delete("keycloak_public_key")
    logger.info("Cache cleared!")