in my java Spring application, I need to build an in-process / in-memory cache of some configuration metadata, which is structured like this:
Graph<String customerName, Map<String, JSONObject> customerMetadata>:
"My Customer" "CustomerInfo":
{IngestionConfig: {"data": "schema":{"fields"[]}}}
"Asset"
{IngestionConfig: {"data": "schema":{"fields"[]}}}
"Invoice"
{IngestionConfig: {"data": "schema":{"fields"[]}}}
Question:
What technique is better suited for this purpose: a Map, a ValueGraph from Google Guava, EhCache, or some other?