I'm trying to create a simple session cache that allows me to set a maximum size on the whole cache. The cache is not a computing cache, so I think Guava's CacheBuilder with a LoadingCache is not appropriate. I want to be able perform the following operations:
get(key) data from the cache that was previously stashed during a stashing operation
put(key,value) into the cache during the stashing operation
I tried using MapMaker but the maximum size method seems to be antiquated. Does anyone know what options I have? I can always resort to just using a simple Map and rolling my own policy I suppose?