【发布时间】:2017-03-20 11:38:38
【问题描述】:
我一直在努力集成 solr 和 apache ignite .....而我正在尝试运行程序 write org.apache.ignite.IgniteCheckedException 类:无法为缓存启用后写(未提供写入器或存储) 显示此错误 CacheConfiguration textMetaConfig = new CacheConfiguration("textMetaCache");
textMetaConfig.setWriteThrough(true);
textMetaConfig.setReadThrough(true);
textMetaConfig.setAtomicityMode(CacheAtomicityMode.ATOMIC);
textMetaConfig.setWriteBehindEnabled(true);
textMetaConfig.setWriteBehindFlushSize(40960);
textMetaConfig.setWriteBehindFlushFrequency(1);
textMetaConfig.setWriteBehindFlushThreadCount(5);
textMetaConfig.setCacheMode(CacheMode.PARTITIONED);
textMetaConfig.setIndexedTypes(String.class, TextMeta.class);
这就是我配置缓存的方式
【问题讨论】: