source: MDService2/trunk/MDService2/src/oscache.properties

Last change on this file was 466, checked in by vronk, 14 years ago

initial import

File size: 5.5 KB
Line 
1# CACHE IN MEMORY
2#
3# If you want to disable memory caching, just uncomment this line.
4#
5cache.memory=false
6
7
8# CACHE KEY
9#
10# This is the key that will be used to store the cache in the application
11# and session scope.
12#
13# If you want to set the cache key to anything other than the default
14# uncomment this line and change the cache.key
15#
16# cache.key=__oscache_cache
17
18
19# USE HOST DOMAIN NAME IN KEY
20#
21# Servers for multiple host domains may wish to add host name info to
22# the generation of the key.  If this is true, then uncomment the
23# following line.
24#
25# cache.use.host.domain.in.key=true
26
27
28# CACHE LISTENERS
29#
30# These hook OSCache events and perform various actions such as logging
31# cache hits and misses, or broadcasting to other cache instances across a cluster.
32# See the documentation for further information.
33#
34# cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.JMSBroadcastingListener,  \
35#                       com.opensymphony.oscache.extra.CacheEntryEventListenerImpl,               \
36#                       com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl,           \
37#                       com.opensymphony.oscache.extra.ScopeEventListenerImpl,                    \
38#                       com.opensymphony.oscache.extra.StatisticListenerImpl
39
40
41# CACHE PERSISTENCE CLASS
42#
43# Specify the class to use for persistence. If you use the supplied DiskPersistenceListener,
44# don't forget to supply the cache.path property to specify the location of the cache
45# directory.
46#
47# If a persistence class is not specified, OSCache will use memory caching only.
48#
49cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener
50# cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.HashDiskPersistenceListener
51
52# CACHE OVERFLOW PERSISTENCE
53# Use persistent cache in overflow or not. The default value is false, which means
54# the persistent cache will be used at all times for every entry.  true is the recommended setting.
55#
56# cache.persistence.overflow.only=true
57
58# CACHE DIRECTORY
59#
60# This is the directory on disk where caches will be stored by the DiskPersistenceListener.
61# it will be created if it doesn't already exist. Remember that OSCache must have
62# write permission to this directory.
63#
64# Note: for Windows machines, this needs \ to be escaped
65# ie Windows:
66cache.path=c:\\apps\\ApacheTomcat\\webapps\\MDService2_cache
67# or *ix:
68# cache.path=/opt/myapp/cache
69#
70# cache.path=c:\\app\\cache
71
72
73# CACHE ALGORITHM
74#
75# Default cache algorithm to use. Note that in order to use an algorithm
76# the cache size must also be specified. If the cache size is not specified,
77# the cache algorithm will be Unlimited cache.
78#
79# cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache
80# cache.algorithm=com.opensymphony.oscache.base.algorithm.FIFOCache
81# cache.algorithm=com.opensymphony.oscache.base.algorithm.UnlimitedCache
82
83# THREAD BLOCKING BEHAVIOR
84#
85# When a request is made for a stale cache entry, it is possible that another thread is already
86# in the process of rebuilding that entry. This setting specifies how OSCache handles the
87# subsequent 'non-building' threads. The default behaviour (cache.blocking=false) is to serve
88# the old content to subsequent threads until the cache entry has been updated. This provides
89# the best performance (at the cost of serving slightly stale data). When blocking is enabled,
90# threads will instead block until the new cache entry is ready to be served. Once the new entry
91# is put in the cache the blocked threads will be restarted and given the new entry.
92# Note that even if blocking is disabled, when there is no stale data available to be served
93# threads will block until the data is added to the cache by the thread that is responsible
94# for building the data.
95#
96# cache.blocking=false
97
98# CACHE SIZE
99#
100# Default cache size in number of items. If a size is specified but not
101# an algorithm, the cache algorithm used will be LRUCache.
102#
103cache.capacity=1000
104
105
106# CACHE UNLIMITED DISK
107# Use unlimited disk cache or not. The default value is false, which means
108# the disk cache will be limited in size to the value specified by cache.capacity.
109#
110# cache.unlimited.disk=false
111
112
113# JMS CLUSTER PROPERTIES
114#
115# Configuration properties for JMS clustering. See the clustering documentation
116# for more information on these settings.
117#
118#cache.cluster.jms.topic.factory=java:comp/env/jms/TopicConnectionFactory
119#cache.cluster.jms.topic.name=java:comp/env/jms/OSCacheTopic
120#cache.cluster.jms.node.name=node1
121
122
123# JAVAGROUPS CLUSTER PROPERTIES
124#
125# Configuration properites for the JavaGroups clustering. Only one of these
126# should be specified. Default values (as shown below) will be used if niether
127# property is set. See the clustering documentation and the JavaGroups project
128# (www.javagroups.com) for more information on these settings.
129#
130#cache.cluster.properties=UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;\
131#mcast_send_buf_size=150000;mcast_recv_buf_size=80000):\
132#PING(timeout=2000;num_initial_members=3):\
133#MERGE2(min_interval=5000;max_interval=10000):\
134#FD_SOCK:VERIFY_SUSPECT(timeout=1500):\
135#pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;max_xmit_size=8192):\
136#UNICAST(timeout=300,600,1200,2400):\
137#pbcast.STABLE(desired_avg_gossip=20000):\
138#FRAG(frag_size=8096;down_thread=false;up_thread=false):\
139#pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)
140#cache.cluster.multicast.ip=231.12.21.132
Note: See TracBrowser for help on using the repository browser.