Apache Commons logo

Commons JCS™

Remote Auxiliary Http Cache Configuration

The following properties apply to the Remote Http Cache plugin.

Remote Http Client Configuration Properties

Property Description Required Default Value
url This is the full url for the http service. Y n/a
maxConnectionsPerHost Maximum simultaneous connections per host. N 100
socketTimeoutMillis Read timeout. N 3000
connectionTimeoutMillis Connection timeout. N 5000
httpVersion The http version to use. N 1.1
includeCacheNameAsParameter Should the cache name be appended to the url. N true
includeKeysAndPatternsAsParameter Should the key be appended to the url. N true
includeRequestTypeasAsParameter Should the request type be appended to the url. N true
remoteHttpClientClassName This allows you to specify your own client implementation. N RemoteHttpCacheClient.class.getName()
ZombieQueueMaxSize The number of elements the zombie queue will hold. This queue is used to store events if we lose our connection with the server. N 1000

Example Configuration

					
# This remote client does not receive
jcs.auxiliary.RC=org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteCacheFactory
jcs.auxiliary.RC.attributes=org.apache.commons.jcs3.auxiliary.remote.RemoteCacheAttributes
jcs.auxiliary.RC.attributes.FailoverServers=localhost:1101,localhost:1102
jcs.auxiliary.RC.attributes.LocalPort=1201
jcs.auxiliary.RC.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RC.attributes.RmiSocketFactoryTimeoutMillis=5000
jcs.auxiliary.RC.attributes.GetOnly=false
jcs.auxiliary.RC.attributes.Receive=false