def get_cache_half_life(connection: 'Connection') ->float:
    """
    Get the current setting for cache half-life.

    Parameters
    ----------
    connection : "Connection"

    Returns
    -------
    float
        Cache half-life setting

    """
    sql = 'SELECT cache_half_life()'
    return float(connection.fetch(sql)[0][0])
