10.2.8.2. カスタムキャッシュストアの設定
カスタムキャッシュストアを実装したら、それを使用するように Data Grid を設定します。
宣言型設定
<local-cache name="customStoreExample"> <persistence> <store class="org.infinispan.persistence.dummy.DummyInMemoryStore" /> </persistence> </local-cache>
プログラムによる設定
Configuration config = new ConfigurationBuilder() .persistence() .addStore(CustomStoreConfigurationBuilder.class) .build();