I am trying to build a simple caching system for caching entries from a database table, and I would like each individual entry in the Cache to have a different expiration time. Are there any Java caching libraries with the ability to set different expiration times for each individual entry in the cache?
P.S: I know REDIS does this but it is way too heavy for my use-case. Looking for something more lightweight. I looked at guava LoadingCache and EhCache. However both of these seem to have a global expiration timeout for ALL entries in the Cache. I am looking for something more fine grained.