we are using ehCache for lookup purpose, so basically what king of approach shall we go for?
Scenario->
We have a singleton lookup class which basically populates the cache during application start up. All the elements present in the cache wont be evicted.
Suggest me what kind of approach shall i go for
1>A single cache, with multiple keys(where a single key holds list of objects)
2>or different cache each having a single key which in turn holds list of objects
example shall i have a single cache which stores countries details via a single key and states details via another key. or different key for countries and state.