TTL is implemented using MongoDB TTL feature. (createdAt Cache Object field is responsible for that). I made default expiration time is DEFAULT_EXPIRE_TIME = 60;
Also note that I made cache size MAX_CACHE_SIZE = 5;. You can change these parameters.
e2e testing is added to the project. However, due to time limitation,I couldn't done all the necessary tests like: unit testing, adding more test cases in e2e testing.