I need a Map to make a cache in Java for same values that I have two String keys. My question it\'s better to make nested Maps (one for each key) or make some type of custom
You may want to consider Guava's Table classes. They implement a Map with two keys per value. This may provide a more readable solution than a composite key depending on your requirements.