Commits

Anonymous committed a30d325

Initial revision

  • Participants
  • Parent commits 4106946

Comments (0)

Files changed (5)

File src/plugins/clustersupport/test/oscacheCluster.properties

+# CACHE DIRECTORY
+cache.path=/tmp/cachetagscache
+
+# LISTENERS
+cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.BroadcastingCacheEventListener
+
+# CLUSTER PROPERTIES
+#
+# Configuration properites for the JavaGroups clustering.
+#
+#cache.cluster.properties=UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=2000;num_initial_members=3):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.STABLE(desired_avg_gossip=20000):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):UNICAST(timeout=5000):FRAG(frag_size=8096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true)
+#cache.cluster.multicast.ip=231.12.21.132

File src/plugins/diskpersistence/test/oscacheDiskAndMemory.properties

+# CACHE DIRECTORY
+cache.path=/tmp/cachetagscache
+
+# CACHE IN MEMORY
+cache.memory=true
+
+# CACHE SIZE
+cache.capacity=100
+
+# CACHE PERSISTENCE CLASS
+cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener

File src/plugins/diskpersistence/test/oscacheDiskOnly.properties

+# CACHE DIRECTORY
+cache.path=/tmp/cachetagscache
+
+# CACHE IN MEMORY
+cache.memory=false
+
+# CACHE PERSISTENCE CLASS
+cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener

File src/webapp/WEB-INF/classes/oscache.properties

+# CACHE DIRECTORY
+#
+# This is the directory on disk where caches will be stored.
+# it will be created if it doesn't already exist, but OSache
+# must be able to write to here.
+#
+# If you want to disable file caching, just comment out or remove this line.
+# Note: for Windows machines, this needs \ to be escaped
+# ie Windows:
+# cache.path=c:\\myapp\\cache
+# or *ix:
+# cache.path=/opt/myapp/cache
+#
+# cache.path=c:\\cachetagscache
+
+# CACHE IN MEMORY
+#
+# If you want to disable memory caching, just comment out or remove this line.
+# Note: disabling memory AND disk caching is possible but fairly stupid ;)
+#
+# cache.memory=false
+
+# CACHE KEY
+#
+# This is the key that will be used to store the cache in the application
+# and session scope.
+#
+# If you want to set the cache key to anything other than the default
+# uncomment this line and change the cache.key
+#
+# cache.key=__oscache_cache
+
+# USE HOST DOMAIN NAME IN KEY
+#
+# Servers for multiple host domains may wish to add host name info to
+# the generation of the key.  If this is true, then uncomment the
+# following line.
+#
+# cache.use.host.domain.in.key=true
+
+# CACHE LISTENERS
+#
+# cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.BroadcastingCacheEventListener,  \
+#                       com.opensymphony.oscache.extra.CacheEntryEventListenerImpl,                      \
+#                       com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl,                  \
+#                       com.opensymphony.oscache.extra.ScopeEventListenerImpl
+
+# CACHE PERSISTENCE CLASS
+#
+# Specify the class to use for persistence.
+#
+# cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener
+
+# CACHE ALGORITHM
+#
+# Default cache algorithm to use. Note that in order to use an algorithm
+# the cache size must also be specified. If the cache size is not specified,
+# the cache algorithm will be Unlimited cache.
+#
+# cache.algorithm=com.opensymphony.oscache.base.algorithm.FIFOCache
+
+# CACHE SIZE
+#
+# Default cache size in number of item. If a size is specified but not
+# an algorithm, the cache algorithm used will be LRUCache.
+#
+cache.capacity=1000
+
+# CACHE UNLIMITED DISK
+# Use unlimited disk cache or not
+# cache.unlimited.disk=false

File src/webapp/WEB-INF/web.xml

+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+   <display-name>OSCache</display-name>
+
+   <filter>
+       <filter-name>oscache</filter-name>
+       <filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
+   </filter>
+
+   <filter-mapping>
+       <filter-name>oscache</filter-name>
+       <url-pattern>/filter/*</url-pattern>
+   </filter-mapping>
+
+   <servlet>
+      <servlet-name>oscache</servlet-name>
+      <servlet-class>com.opensymphony.oscache.web.OscacheServlet</servlet-class>
+      <load-on-startup>1</load-on-startup>
+   </servlet>
+
+   <servlet-mapping>
+      <servlet-name>oscache</servlet-name>
+      <url-pattern>/cacheServlet/*</url-pattern>
+   </servlet-mapping>
+
+   <session-config>
+      <session-timeout>5</session-timeout>
+   </session-config>
+
+   <taglib>
+      <taglib-uri>oscache</taglib-uri>
+      <taglib-location>/WEB-INF/lib/oscache.jar</taglib-location>
+   </taglib>
+
+</web-app>