Add memory-cache

Change-Id: Ib288a5aefc8949ccd7ae147c3bfad31497f5ce9f