Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
小优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Camio1945 committed Oct 4, 2018
1 parent 2246aff commit 79b403b
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 49 deletions.
104 changes: 56 additions & 48 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ private static void initDataSourceByHikari() throws SQLException {
static void testMultiThread(int threadCount, Class versionClazz) throws Exception {
// 商品ID
Long goodsId = 1L;
GoodsCache.initCache(goodsId);
if (versionClazz == Version016WithCache.class) {
GoodsCache.initCache(goodsId);
}
// 查询商品信息
Map<String, Object> goods = queryOneRow("select `stock`,`sales` from `Goods` as t where t.id=" + goodsId);
// 初始库存
Expand Down

0 comments on commit 79b403b

Please sign in to comment.