adding memory.api

Change-Id: Ie4b5eaf4b62f4f53b88701b2dd1da2cd56202123