Function dehumanizerTTL

  • Converts a human-readable time duration (e.g., "1d 2h 3m 4s") back to a time-to-live (TTL) in milliseconds.

    Returns

    The TTL in milliseconds.

    Throws

    Error if an unsupported TTL unit is encountered.

    Parameters

    • ttl: string

      The human-readable string representing the time duration.

    Returns number

Generated using TypeDoc