How will you build an API for Memory Cache? Choose whichever language you are comfortable with.
Sigiloso
I choose to answer using Java. I proposed 4 methods, Add, Delete, Display and Search. Further coding these using Java. In addition, I did not assumed anything as tried to clarify the problem as much as I could.