Reputation: 11
Application is using Hibernate 3 and needs to cache data while saving to the database.
Is it possible to cache only a few columns of an entity, instead of all?
Is it possible to set expiration time of an entity after a few days? For example, is it possible to set expiration time to 3 days, so that records can be auto-removed from the cache after 3 days?
I have started looking into caching process but not sure if the above two needs can be fulfilled.
Upvotes: 1
Views: 1404
Reputation: 165
1) YES, Make other fields Transient, so they will not take part in second level caching pr
Upvotes: 0
Reputation: 23552
Upvotes: 1