دنبال کننده ها

۱۳۹۶ تیر ۱۳, سه‌شنبه

java - How to clear / refresh the cache in EclipseLink

[ad_1]



I'm using following settings in persistence.xml (I use Eclipselink 2.6.4) from my web application:



<properties> 
<property name="eclipselink.jdbc.cache-statements" value="true" />
<property name="eclipselink.cache.query-results" value="true" />
<property name="eclipselink.ddl-generation.index-foreign-keys" value="true" />
<property name="eclipselink.logging.level" value="OFF" />
<property name="eclipselink.persistence-context.close-on-commit" value="true" />
<property name="eclipselink.persistence-context.flush-mode" value="commit" />
<property name="eclipselink.persistence-context.persist-on-commit" value="false" />
</properties>


My question is, is there a possibility to clear the cache globally? Let say every 3 hours?
Thanks




[ad_2]

لینک منبع