摘要:
import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concu 阅读全文
posted @ 2017-11-04 23:26
麻雀虽小五脏俱全
阅读(8428)
评论(1)
推荐(0)
摘要:
1、什么叫着缓存击穿? 缓存击穿:就是略过缓存了,直接请求数据库,导致数据库挂了 一般的缓存设计就算下面这种写法: // 判断缓存key是否存在 if(缓存中存在){ return redis.get(key); } // 查询数据库 value = DB.query(); // 保存在缓存 red 阅读全文
posted @ 2017-11-04 22:13
麻雀虽小五脏俱全
阅读(1664)
评论(0)
推荐(0)

浙公网安备 33010602011771号