New111
03/19/2020, 9:11 PMCasey Brooks
03/19/2020, 9:13 PMEmil Kantis
03/19/2020, 9:15 PMCache
, should do the trick. Size-based eviction is supported and Guava has been around a long time. https://github.com/google/guava/wiki/CachesExplainedNew111
03/19/2020, 9:16 PMNew111
03/19/2020, 9:19 PMCasey Brooks
03/19/2020, 9:21 PMNew111
03/19/2020, 9:23 PMNew111
03/19/2020, 9:24 PMCasey Brooks
03/19/2020, 9:31 PMNew111
03/19/2020, 10:58 PMNew111
03/20/2020, 9:52 AMCasey Brooks
03/20/2020, 1:48 PMHashMap
, which maps some “cache key” to a value, computing it if necessary. So you’d cache different queries using different cache keys for each query. If you want to configure the cache itself differently for each query, you’d probably have to create separate instances of the cache for each query.Casey Brooks
03/20/2020, 1:50 PM