add the api for testing the memory cache