Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Cache expiry time

Hi Mark,

  The following documentation should give you a good place to start:

http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_Use_the_.40Cache_Annotation

As for a default cache expiry setting for your whole application, that is currently not available. It would, however, be fairly easy to write a SessionCustomizer that could iterate through the descriptors and apply an expiry property to each or them. Here is the information about SessionCustomizers:

http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Using_EclipseLink_JPA_Extensions_for_Customization_and_Optimization


-Tom

Mark Robinson wrote:
Hi,

I'd like to be able to set the cache expiry time for all my objects for the whole application. Can I do this through persistence.xml or sessions.xml?

Mark



Back to the top