我想在插入时设置 cacheModel ,我这样做:
<select id="SelectAll_Cache" resultClass="SN" cacheModel="cache-select-all">
<include refid="GetAll_SN"/>
</select>
<cacheModel id="cache-select-all" implementation="LRU" readOnly="false" serialize="true">
<flushInterval hours="24"/>
<property name="size" value="800"/>
</cacheModel>
如果我执行查询,我会得到以下异常:
- 将 CacheModel 设置为语句时发生错误。
- 声明:SelectAll_Cache
- cacheModel 中发生错误:SN.cache-select-all。