def create_db_name(
        prefix: str, topology: str, cluster: str, environ: str) -> str:
    """ Function for forming the InfluxDB database name from the supplied
    details. This function will cache results to speed up name creation.

    Arguments:
        prefix (str):   The string prepended to all database names for this
                        Heron setup.
        topology (str): The topology ID string.
        cluster (str):  The cluster name.
        environ (str):  The environment that the topology is running in.

    Returns:
        The database name string formed form the supplied details.
    """

    return f"{prefix}-{cluster}-{environ}-{topology}"