Converts a human-readable time duration (e.g., "1d 2h 3m 4s") back to a time-to-live (TTL) in milliseconds.
The TTL in milliseconds.
Error if an unsupported TTL unit is encountered.
The human-readable string representing the time duration.
Generated using TypeDoc
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.