Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

one cache for all "objects" or one cache for each type? - web application with cache (guava)

Tags:

java

guava

gwt

I am creating a web application that displays static data from back end. The data is of different types. to disburden the back end i have implemented a cache for one type with guava's cache. now i need a cache for another type and the question is: implement a cache for this type or generalize the existing cache to handle "objects" (as far as i know i could give the different types different weights, right?). the advantage of different caches is, that i could configure the separately - probably switching one cache off?!

but i am apprehending that on using separate caches i will loose some nasty google-engineered cache management stuff?!

what do you think about that?

like image 256
dermoritz Avatar asked Feb 21 '26 22:02

dermoritz


1 Answers

Go ahead, use multiple caches. There's no "nasty Google-engineered cache management stuff," as you'd see if you looked at the source code.

like image 95
Louis Wasserman Avatar answered Feb 24 '26 10:02

Louis Wasserman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!