[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Best Practices for EhCache  XML
Forum Index -> Ehcache
Author Message
satya087

journeyman

Joined: 10/14/2010 05:58:35
Messages: 16
Offline

Hi,

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.

rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

Issue seems to be resolved.Please let us know if more information is required.

Rakesh Joshi
Senior Consultant
Terracotta.
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team