What is the better option for a multi-level, in-process cache?
问题 In my spring boot application, I need to implement an in-process multi-level cache Here is an example of the data, which needs to be cached: customer name (key, string) --data entity name (key, string) --config-1 (value, JSONObject) --config-2 (value, JSONObject) I'm planning on having a few hundreds customer entries, each having up to a hundred "config" JSONObjects I'm currently looking at ehcache: Cache cache = manager.getCache("sampleCache1"); Element element = new Element("key1", "value1"