• New Feature
  • Status: Closed
  • 1 Critical
  • Resolution: Fixed
  • ehcache-core,ehcache-terracotta
  • hsingh
  • Reporter: amiller
  • December 15, 2009
  • 0
  • Watchers: 1
  • January 17, 2013
  • January 20, 2010

Description

The following items exist in the Hibernate product config and need to be available in the new Ehcache clustered version as well:

  • local key cache on/off (default off)
  • local key cache size
  • orphan eviction on/off (default on)
  • orphan frequency count
  • debug logging on/off (default off)

“Support” entails adding new attributes to the ehcache.xml/xsd/docs and making use of that config in Ehcache clustered caches.

These items are (in the Hibernate product) dynamically configurable and that is desired in this version as well for parity (but really the debug logging is the high value one of these).

Comments

Chris Dennis 2010-01-20

These are configurable via the terracotta element of the ehcache configuration.

Himadri Singh 2010-02-22

Verified in rev 1888. Following attributes are supported.

<xs:element name="terracotta">
    <xs:complexType>
        <xs:attribute name="clustered" use="optional" type="xs:boolean" default="true"/>
        <xs:attribute name="valueMode" use="optional" type="terracottaCacheValueType" default="serialization"/>
        <xs:attribute name="coherentReads" use="optional" type="xs:boolean" default="true"/>
        <xs:attribute name="localKeyCache" use="optional" type="xs:boolean" default="false"/>
        <xs:attribute name="localKeyCacheSize" use="optional" type="xs:positiveInteger" default="300000"/>
        <xs:attribute name="orphanEviction" use="optional" type="xs:boolean" default="true"/>
        <xs:attribute name="orphanEvictionPeriod" use="optional" type="xs:positiveInteger" default="4"/>
        <xs:attribute name="copyOnRead" use="optional" type="xs:boolean" default="false"/>
        <xs:attribute name="coherent" use="optional" type="xs:boolean" default="true"/>
        <xs:attribute name="synchronousWrites" use="optional" type="xs:boolean" default="false"/>
    </xs:complexType>
</xs:element>