xiangpei
2 天以前 654f4eebf519f015506b90d71637e6aad75e5b5c
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
26
27
package cn.lili.modules.lmk.constant;
 
import java.util.concurrent.TimeUnit;
 
/**
 * redis key过期时间
 *
 * @author:xp
 * @date:2025/6/25 10:31
 */
public class RedisKeyExpireConstant {
 
    /**
     * 评论数
     */
    public static final Long COMMENT_NUM_EXPIRE = 15l;
 
 
    /**
     * 过期时间单位
     */
    public static final TimeUnit EXPIRE_DAY = TimeUnit.DAYS;  // 天
    public static final TimeUnit EXPIRE_SED = TimeUnit.SECONDS;  // 秒
    public static final TimeUnit EXPIRE_HOUR = TimeUnit.HOURS;  // 小时
    public static final TimeUnit EXPIRE_MINUTES = TimeUnit.MINUTES;  // 分钟
 
}