package com.sandu.ximon.admin.redis; import com.sandu.common.redis.BasePrefix; /** * @author chenjiantian * @date 2021/9/3 16:40 * 灯相关的key */ public class LightKey extends BasePrefix { public LightKey(int expireSeconds, String prefix) { super(expireSeconds, prefix); } @Override public String getModelName() { return "Light"; } /** * 单灯上报的mac,如果有说明该上报的单灯以前已经上报过 */ public static LightKey REPORT_MAC = new LightKey(3600, "ReportMac"); /** * 灯杆编号后缀每天从1开始递增,定时任务0点重置 */ public static LightKey POLE_SN = new LightKey(86400, "PoleSn"); }