In a perfect world this would have been 8.0.0.Final, but Sod's law rules, so I give you 8.0.1.Final instead :) So head on over to our store download page and try it out.
The actual configuration of the cachestore depends on the provider, so refer to the JClouds documentation. The following is a programmatic example using the "transient" provider:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConfigurationBuilder b = new ConfigurationBuilder(); | |
b.persistence().addStore(CloudStoreConfigurationBuilder.class) | |
.provider("transient") | |
.location("test-location") | |
.identity("me") | |
.credential("s3cr3t") | |
.endpoint("http://test.endpoint") | |
.compress(true); |
And this is how you'd configure it declaratively:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cache-container default-cache="default"> | |
<local-cache name="default"> | |
<persistence passivation="false"> | |
<cloud-store xmlns="urn:infinispan:config:store:cloud:8.0" | |
provider="transient" | |
location="test-location" | |
identity="me" | |
credential="s3cr3t" | |
container="test-container" | |
endpoint="http://test.endpoint" | |
compress="true"/> | |
</persistence> | |
</local-cache> | |
</cache-container> |
This will work with any Infinispan 8.x release.
Enjoy !
No comments:
Post a Comment