read
Reads an environment variable and converts it to the specified type.
Return
an Optional containing the value of the environment variable, or empty if the variable is not set
Parameters
key
the name of the environment variable
target Type
the type to convert the value to
Reads an environment variable and converts it to the specified type, returning a default value if the variable is not set.
Return
the value of the environment variable, or the default value if the variable is not set
Parameters
key
the name of the environment variable
target Type
the type to convert the value to
default Value
the default value to return if the environment variable is not set