add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.iotechn.unimall.biz.service.footprint;
 
import com.dobbinsoft.fw.core.exception.ServiceException;
import com.dobbinsoft.fw.support.component.CacheComponent;
import com.iotechn.unimall.data.constant.CacheConst;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: kbq
 * Date: 2019-07-08
 * Time: 上午10:15
 */
@Service
public class FootprintBizService {
 
    @Autowired
    private CacheComponent cacheComponent;
 
    public void newFootprint(Long spuId, Long userId) throws ServiceException {
        cacheComponent.putZSetLru(CacheConst.FOOTPRINT_LRU + userId, "P" + spuId, 30, 10);
    }
}