[英]apache ignite configure a custom cache store
我正在創建自己的自定義 ignite org.apache.ignite.cache.store.CacheStore
實現以將緩存持久化到 MongoDB。 我了解如何在 ignite XML 中指定我的新自定義緩存 class:
<property name="cacheConfiguration">
<list>
<bean class="org.apache.ignite.configuration.CacheConfiguration">
...
<property name="cacheStoreFactory">
<bean class="javax.cache.configuration.FactoryBuilder" factory-method="factoryOf">
<constructor-arg value="com.glib.ws.ignite.MyCustomMongoCacheStore"/>
</bean>
</property>
...
</bean>
</list>
</property>
有沒有辦法為com.glib.ws.ignite.MyCustomMongoCacheStore
的實例指定/提供一些屬性?
您可以擁有自己的com.glib.ws.ignite.MyCustomMongoCacheStoreFactory
implements Factory, Serializable
,它將接受所有這些屬性,使用這些屬性構造您的實際MyCustomMongoCacheStore
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.