hi.
I use mysql master/slave replications.
master db query is not cache but slave query cached.
if cmd.isUseCache()==true , use cache
else not use cache
how to it?
===================================================
@Cacheable(cacheName="GoodsManagerCache")
public List<Goods> findGoods(GoodsSearchCommand cmd) {
if(cmd.isUseCache()==true)
list=this.goodsSlaveDao.selectGoods(cmd);
else
list=this.goodsMasterDao.selectGoods(cmd);
}