Oracle interview question

Try to build a cache using Java.