Skip to content

Instantly share code, notes, and snippets.

@takabow
Created December 20, 2013 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takabow/8052368 to your computer and use it in GitHub Desktop.
Save takabow/8052368 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config http://xmlns.oracle.com/coherence/coherence-cache-config/1.2/coherence-cache-config.xsd">
<defaults>
<serializer>pof</serializer>
</defaults>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>TestCache</cache-name>
<scheme-name>TestCacheScheme</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>TestCacheScheme</scheme-name>
<service-name>TestCacheService</service-name>
<thread-count>5</thread-count>
<partition-count>257</partition-count>
<backup-count>1</backup-count>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<local-scheme/>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>RiakCacheStore</class-name>
<init-params>
<init-param>
<param-type>String</param-type>
<param-value>127.0.0.1</param-value>
</init-param>
<init-param>
<param-type>int</param-type>
<param-value>10017</param-value>
</init-param>
<init-param>
<param-type>String</param-type>
<param-value>TestBucket</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<!-- write-delay>1s</write-delay -->
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment