Design a data structure so it has two functions .set(key, val) and .get(key) where the key is in double so there could be millions of data to be inserted.
design a data structure to support the functions.
I think this question is similar with leetcode 146. LRU Cache, but how can we solve this problem under the big data scenario?