我正在尝试在我的 Web Logic App 服务器中创建一个写入缓存(有一个针对此应用服务器的一致性集群)。我在 Server Start 'Arguments' (-Dtangosol.coherence.cacheconfig=/server/appserver/server-cache-config.xml) 中给出了服务器特定的缓存配置。
服务器缓存配置.xml:
<cache-config>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>MissedTransactionCache</cache-name>
<scheme-name>Missed-Transaction-Cache</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<distributed-scheme>
<scheme-name>missed-transaction-cache-scheme</scheme-name>
<service-name>DistributedCache</service-name>
<thread-count>50</thread-count>
<backing-map-scheme>
<read-write-backing-map-scheme>
<scheme-name>TestScheme</scheme-name>
<internal-cache-scheme>
<local-scheme>
<scheme-ref>categories-eviction</scheme-ref>
</local-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.example.MissedTransactionCacheStore</class-name>
</class-scheme>
</cachestore-scheme>
<write-delay>30s</write-delay>
<write-batch-factor>0.9</write-batch-factor>
</read-write-backing-map-scheme>
</backing-map-scheme>
<listener>
<class-scheme>
<class-name>com.example.MissedTransactionCacheListener</class-name>
</class-scheme>
</listener>
</distributed-scheme>
<local-scheme>
<scheme-name>categories-noneviction</scheme-name>
</local-scheme>
</caching-schemes>
</cache-config>
在服务器启动和缓存交互(get、put 等)期间,我没有看到任何异常,即使监听器(MissedTransactionCacheListener)事件被触发,但没有发生存储操作。我错过了什么?