Stores a value in the container using the inferred type T.
the key to store the value under
the value to store