2021-12-30 21:57:06 +08:00
|
|
|
|
package com.xjs.consts;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-16 21:35:02 +08:00
|
|
|
|
* redis key常量
|
2022-03-18 01:05:52 +08:00
|
|
|
|
*
|
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 {
|
|
|
|
|
|
|
2022-04-08 09:22:37 +08:00
|
|
|
|
//----------------------bussiness-key------------------------
|
2021-12-30 21:57:06 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
2021-12-31 19:54:45 +08:00
|
|
|
|
* 翻译字典常量key
|
2021-12-30 21:57:06 +08:00
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String TRAN_DICT = "bussiness:tianxing:tran_dict";
|
2021-12-30 21:57:06 +08:00
|
|
|
|
|
2021-12-31 19:54:45 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 英语一言常量key
|
|
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String ONE_ENGLISH = "bussiness:tianxing:one_english";
|
2022-01-12 15:10:05 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 热搜常量key
|
|
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String HOT = "bussiness: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-04-08 16:37:31 +08:00
|
|
|
|
public static final String IP_INFO = "bussiness: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-04-08 16:37:31 +08:00
|
|
|
|
public static final String NOW_WEATHER = "bussiness:weather:now";
|
2022-01-17 10:42:03 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 预报天气常量信息key
|
|
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String FORECAST_WEATHER = "bussiness:weather:forecast";
|
2022-01-16 21:35:02 +08:00
|
|
|
|
|
2022-02-20 18:09:32 +08:00
|
|
|
|
/**
|
2022-03-18 01:05:52 +08:00
|
|
|
|
* 爬虫记录循环次数常量信息:_36wallpaper
|
2022-02-20 18:09:32 +08:00
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String REPTILE_36_WALLPAPER_COUNT = "bussiness:reptile:_36wallpaper.count";
|
2022-02-22 09:47:46 +08:00
|
|
|
|
|
2022-03-18 01:05:52 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 爬虫记录循环次数常量信息:weixin.sougou
|
|
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String REPTILE_WEIXIN_SOUGOU_COUNT = "bussiness:reptile:weixin.sougou.count";
|
2022-02-22 09:47:46 +08:00
|
|
|
|
|
2022-03-18 01:05:52 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 爬虫记录循环次数常量信息:weixin.link
|
|
|
|
|
|
*/
|
2022-04-08 16:37:31 +08:00
|
|
|
|
public static final String REPTILE_WEIXIN_LINK_COUNT = "bussiness:reptile:weixin.link.count";
|
2022-04-08 09:22:37 +08:00
|
|
|
|
|
2022-06-13 15:57:38 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 爬虫记录循环次数常量信息:weixin.official
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String REPTILE_WEIXIN_OFFICIAL_COUNT = "bussiness:reptile:weixin.official.count";
|
|
|
|
|
|
|
2022-06-17 19:33:40 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 爬虫记录循环次数常量信息:weixin.official
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String REPTILE_2048_COMMUNITY_COUNT = "bussiness:reptile:y2048.community.count";
|
|
|
|
|
|
|
2022-06-13 15:57:38 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 爬虫获取微信公众号名称临时常量信息:temp:official_accounts:name
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String REPTILE_WEIXIN_OFFICIAL_NAME = "temp:official_accounts:name";
|
|
|
|
|
|
|
2022-04-18 01:53:49 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*爬虫记录循环次数常量信息:zol.phone
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String REPTILE_ZOL_PHONE_COUNT = "bussiness:reptile:zol.phone.count";
|
|
|
|
|
|
|
2022-04-13 15:01:39 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 邮件记录状态常量信息key
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String MAIL_STATUS = "bussiness:mail:status";
|
|
|
|
|
|
|
2022-04-08 09:22:37 +08:00
|
|
|
|
|
|
|
|
|
|
//--------------------------mall-key-----------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* mallKey前缀
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String MALL_PREFIX = "mall:";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 三级分类后台key
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String CATALOG_AFTER = MALL_PREFIX + "catalog:after";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 三级分类前台key
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String CATALOG_BEFORE = MALL_PREFIX + "catalog:before";
|
|
|
|
|
|
|
2022-04-08 16:37:31 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Redis分布式锁key
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static final String LOCK = "lock";
|
|
|
|
|
|
|
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-04-08 16:37:31 +08:00
|
|
|
|
public static final Long LOCK_EXPIRE = 30L; //秒
|
|
|
|
|
|
|
2022-01-15 23:18:15 +08:00
|
|
|
|
|
2021-12-30 21:57:06 +08:00
|
|
|
|
}
|