Is there any such thing as a combination of Guava’s Cache and Multimap functionality available? Essentially, I need a collection where entries expire after a given time such as available in Cache but I have non-unique keys and I need the entries to expire independently.
Is there any such thing as a combination of Guava’s Cache and Multimap functionality
Share
I think that Louis Wasserman provided the answer in one of the comments above, i.e. that there is no off-the-shelf combo of
MultimapandCacheavailable. I have solved my problem/requirements with the solution outlined in pseudo-code below:This simple ‘solution’ has some limitations but it works OK for me.