MyBatis之cache缓存配置
[*]<cache eviction="FIFO" flushInterval="86400000" size="1000" readOnly="true"/>
[*]<select resultMap="location_result" parameterType="java.util.Map" id="list" flushCache="false" useCache="true">
[*]<insert parameterType="Location" id="add" flushCache="true">
[*]LRU – Least Recently Used: Removes objects that haven't been used for the longst period of time.
[*]FIFO – First In First Out: Removes objects in the order that they entered the cache.
[*]SOFT – Soft Reference: Removes objects based on the garbage collector state and the rules of Soft References.
[*]WEAK – Weak Reference: More aggressively removes objects based on the garbage collector state and rules of Weak References.
页:
[1]