【发布时间】:2016-03-14 14:39:44
【问题描述】:
哪些 wso2 中介和包类实现 JSON/REST/HTTP 友好缓存?例如,读取 HTTP 标头和 URI 以识别 GET 命令上的缓存键,解析 JSON(而不是 XML)以使集合 POST 上的缓存条目无效(使用有效负载中的键),并符合标准 HTTP/1.1 标头方案(即@987654321 @) ??
【问题讨论】:
标签: api caching wso2 wso2esb mediator
哪些 wso2 中介和包类实现 JSON/REST/HTTP 友好缓存?例如,读取 HTTP 标头和 URI 以识别 GET 命令上的缓存键,解析 JSON(而不是 XML)以使集合 POST 上的缓存条目无效(使用有效负载中的键),并符合标准 HTTP/1.1 标头方案(即@987654321 @) ??
【问题讨论】:
标签: api caching wso2 wso2esb mediator
您可以使用来自 WSO2 ESB 的Cache Mediator。
<sequence name="SEQ_CACHE">
<in>
<cache scope="per-host"
collector="false"
hashGenerator="org.wso2.caching.digest.DOMHASHGenerator"
timeout="20">
<implementation type="memory" maxSize="100"/>
</cache>
<send>
<endpoint>
<address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</in>
<out>
<cache scope="per-host" collector="true"/>
<send/>
</out>
</sequence>
【讨论】: