Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 596

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
ColdFusion ORM
<ehcache>
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU"
/>
<cache name="Artist"
maxElementsInMemory="20"
eternal="true"
overflowToDisk="false"
/>
</ehcache>
Modifications to ehcache.xml in ColdFusion 9.0.1
ehCache.xml includes the following configuration properties:
diskSpoolBufferSizeMB
The default size is 30 MB. Each spool buffer is used only by its cache.
Turning on trace-level logging shows if backup for cache created/updated using
diskstore.
: Determines if the MemoryStore must be cleared when the cache is flushed. By default, the
clearOnFlush
MemoryStore is cleared.
diskExpiryThreadIntervalSeconds
value is
seconds.
120
Note: The functions
cacheGetProperties
Use secondary cache
To use secondary cache, you must configure the following settings in the application:
ormsettings.secondarycacheenabled
This setting defines whether the secondary cache would be used by the application. By default, this is set to false.
ormsettings.Cacheprovider
This setting defines the cache provider that needs to be used for secondary cache. This defaults to EHCache. The
other values for this setting are JBossCache, OSCache, SwarmCache and Hashtable. You can also specify the fully
qualified class name of the cache provider.
ormsettings.cacheconfig
This setting defines the configuration file required by the secondary cache provider. For example, EHCache
requires
that defines the configuration settings for the secondary cache. Specify the path to the XML
EHCache.xml
file in this setting. If this setting is not defined, cache provider uses its default configuration.
: Size to allocate the DiskStore for a spool buffer.
: The number of seconds between runs of the disk expiry thread. The default
and
cacheSetProperties
Last updated 1/20/2012
action="put"
can be used to get/set these properties.
591
occurs in the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents