Reputation: 984
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
Reputation: 1504
Use the following:
persistence
.addSingleFileStore()
.async().enable().modificationQueueSize(1000);
Upvotes: 1