package com.ycl.utils.common; /** * redis缓存时间 * 单位毫秒 * * @version 1.0 * @date 2022/9/9 */ public enum LiveTimeMillisecond { s1(1000), /** * 5秒 */ s5(5000), /** * 10秒 */ s10(10000), /** * 1分钟 */ s60(60000), /** * 2分钟 */ s120(120000), /** * 3分钟 */ s180(180000), /** * 5分钟 */ s300(300000), /** * 10分钟 */ s600(600000), /** * 30分钟 */ s1800(1800000), /** * 1小时 */ s3600(3600000), /** * 2小时 */ s7200(7200000), /** * 3小时 */ s10800(10800000), /** * 4小时 */ s14400(14400000), /** * 12小时 */ s43200(43200000), /** * 一天 */ s86400(86400000), /** * 三天 */ s259200000(259200000), /** * 七天 */ s604800(604800000), /** * 30天 */ s2592000(2592000000L), /** * 60天 */ s5184000(5184000000L), /** * 180天 */ s15552000(15552000000L); /** * 超时时间 单位秒 */ public long time; private LiveTimeMillisecond(long time) { this.time = time; } }