清除分类商品缓存
This commit is contained in:
@@ -778,4 +778,10 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
||||
public List<ProductVO> listAndLowPrice(Long shopId, List<Long> productIds) {
|
||||
return mapper.productList(shopId, productIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cleanCategoryProduct(Long shopId, Long categoryId) {
|
||||
String key = ADMIN_CLIENT_PRODUCT_LIST + "::" + shopId + "::" + categoryId;
|
||||
redisService.del(key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user