Name Ela Bhattacharya
Round 2
Design a Cache
Functional requirements:
save of data (write)
Lookup of data (read)
Storing session
TTL for few hours
deleteKey()
Boolean put(K key, V value, Integer ttl) A-apple, 2hrs
V get(K attributeKey)
Boolean deleteKey(K attributeKey)
// internal
Boolean IsTtlValid(K key,V value, )
// LRU
<Enumeration> CacheEvictionPolicy