Implement the local server-side response cache

WARNING - TOPIC NOT WRITTEN - TOPIC ID: 2851

This topic has not yet been written. The content below is from the topic description.
To set up the server-side cache, there are a few simple steps you have to perform. If you are using Maven you must depend on the resteasy-cache-core artifact: org.jboss.resteasy resteasy-cache-core 1.2.1.GA The next thing you have to do is to add a ServletContextListener, org.jboss.resteasy.plugins.cache.server.ServletServerCache. This must be specified after the ResteasyBootstrap listener in your web.xml file. org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap resteasy.server.cache.maxsize 1000 resteasy.server.cache.eviction.wakeup.interval 5000 org.jboss.resteasy.plugins.cache.server.ServletServerCache Resteasy org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher Resteasy /rest-services/* The cache implementation is based on the JBoss Cache project: http://jboss.org/jbosscache. There are two context-param configuration variables that you can set. resteasy.server.cache.maxsize sets the number of elements that can be cached. The resteasy.server.cache.eviction.wakeup.interval sets the rate at which the background eviction thread runs to purge the cache of stale entries.