2021-12-30 21:57:06 +08:00
|
|
|
package com.xjs.consts;
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-16 21:35:02 +08:00
|
|
|
* redis key常量
|
2021-12-30 21:57:06 +08:00
|
|
|
* @author xiejs
|
2022-01-16 21:35:02 +08:00
|
|
|
* @since 2021-12-30
|
2021-12-30 21:57:06 +08:00
|
|
|
*/
|
|
|
|
|
public class RedisConst {
|
|
|
|
|
|
|
|
|
|
//----------------------key------------------------
|
|
|
|
|
|
|
|
|
|
/**
|
2021-12-31 19:54:45 +08:00
|
|
|
* 翻译字典常量key
|
2021-12-30 21:57:06 +08:00
|
|
|
*/
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final String TRAN_DICT = "tianxing:tran_dict";
|
2021-12-30 21:57:06 +08:00
|
|
|
|
2021-12-31 19:54:45 +08:00
|
|
|
/**
|
|
|
|
|
* 英语一言常量key
|
|
|
|
|
*/
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final String ONE_ENGLISH = "tianxing:one_english";
|
2022-01-12 15:10:05 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 热搜常量key
|
|
|
|
|
*/
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final String HOT = "tianxing:hot";
|
2021-12-31 19:54:45 +08:00
|
|
|
|
2022-01-14 22:48:40 +08:00
|
|
|
/**
|
|
|
|
|
* websocket常量key
|
|
|
|
|
*/
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final String WEBSOCKET = "websocket";
|
2022-01-15 23:18:15 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ip信息常量key
|
|
|
|
|
*/
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final String IP_INFO = "ip_info";
|
2022-01-14 22:48:40 +08:00
|
|
|
|
2022-01-16 21:35:02 +08:00
|
|
|
/**
|
2022-01-17 10:42:03 +08:00
|
|
|
* 实时天气常量信息key
|
2022-01-16 21:35:02 +08:00
|
|
|
*/
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final String NOW_WEATHER = "weather:now";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 预报天气常量信息key
|
|
|
|
|
*/
|
|
|
|
|
public static final String FORECAST_WEATHER = "weather:forecast";
|
2022-01-16 21:35:02 +08:00
|
|
|
|
2022-02-20 18:09:32 +08:00
|
|
|
/**
|
|
|
|
|
* 爬虫记录循环次数常量信息
|
|
|
|
|
*/
|
2022-02-20 22:18:54 +08:00
|
|
|
public static final String REPTILE_COUNT= "reptile:_36wallpaper.count";
|
2021-12-30 21:57:06 +08:00
|
|
|
|
|
|
|
|
//-------------------有效时间-----------------------
|
2022-01-15 23:18:15 +08:00
|
|
|
public static final Integer TRAN_DICT_EXPIRE = 1; //小时
|
2021-12-31 19:54:45 +08:00
|
|
|
|
2021-12-31 23:14:33 +08:00
|
|
|
public static final Integer ONE_ENGLISH_EXPIRE = 3; //分钟
|
2021-12-30 21:57:06 +08:00
|
|
|
|
2022-01-12 15:10:05 +08:00
|
|
|
public static final Long HOT_EXPIRE = 10L; //分钟
|
|
|
|
|
|
2022-01-15 23:18:15 +08:00
|
|
|
public static final Long IP_INFO_EXPIRE = 30L; //分钟
|
|
|
|
|
|
2022-01-16 21:35:02 +08:00
|
|
|
public static final Long NOW_WHEATHER_EXPIRE = 10L; //分钟
|
|
|
|
|
|
2022-01-17 10:42:03 +08:00
|
|
|
public static final Long FORECAST_WHEATHER_EXPIRE = 10L; //分钟
|
|
|
|
|
|
2022-01-15 23:18:15 +08:00
|
|
|
|
2021-12-30 21:57:06 +08:00
|
|
|
}
|