Antoine Toulme
Antoine Toulme

Reputation: 984

How can I set up write-behind persistence in an Infinispan cache programmatically?

I am trying to create a write-behind cache programmatically. I see it's possible to declare it in XML, but I don't see a Java method to declare write-behind parameters.

Upvotes: 0

Views: 82

Answers (1)

Tristan Tarrant
Tristan Tarrant

Reputation: 1504

Use the following:

persistence
     .addSingleFileStore()
     .async().enable().modificationQueueSize(1000);

Upvotes: 1

Related Questions