Sets the key and corresponding value, and discards one of the least-used keys if full.
the previous value of key, or null if it is absent.