public class Test(){ public List getOrganizeList(String id){ String key="organ_list"; if(CacheManager.getCache().get(key)==null){ //读取组织列表 CacheManager.getCache().put(key,organList); } return CacheManager.getCache().get(key); } } <p class="indent">
<cache key="organ_list" class="com.zrweng.example.Test" method="getOrganizeList" /> <p class="indent">
猜你喜欢
本站原创《复杂软件设计之道:领域驱动设计全面解析与实战》
其他人在看