饿虎岗资源网 Design By www.oxmxm.com
数据库中得热点数据key命名惯例
上面的key对应的值则可以是
redis 缓存 key常量命名规则示例
package com.awj.mall.restfulapi.common.consts; public class CacheConsts { // 短信验证码类型 /** * 登录 */ public static final String SMS_TYPE_LOGIN = "cache:api:sms_login_"; /** * 重置密码 */ public static final String SMS_TYPE_RESETPWD = "cache:api:sms_resetpwd_"; /** * 重置手机号 */ public static final String SMS_TYPE_RESETPHONE = "cache:api:sms_resetphone_"; /** * 注册 */ public static final String SMS_TYPE_REG = "cache:api:sms_reg_"; /** * 工单报备报备人校验 */ public static final String SMS_TYPE_PROJECT = "cache:api:sms_project_"; /** * 服务商申请 */ public static final String SMS_TYPE_SERVICE = "cache:api:sms_service_"; /** * 绑定账户 */ public static final String SMS_TYPE_BIND_PAYACCOUNT = "cache:api:sms_bing_payaccount_"; /** * 服务商接单后核销码短信消息(消费者) */ public static final String SMS_TYPE_SERVICE_HX = "cache:api:sms_service_hx_"; /** * 重置密码_token */ public static final String SMS_TYPE_RESETPWD_TOKEN = "cache:api:sms_resetpwd:token_"; /** * 重置密码_手机号 */ public static final String SMS_TYPE_RESETPHONE_TOKEN = "cache:api:sms_resetphone:token_"; //省市区商圈缓存 /** * 所有省市区 */ public static final String SYS_CITY_LIST = "cache:api:city_list"; /** * 已开通区域包含商圈信息 */ public static final String SYS_CITY_ESC_LIST = "cache:api:city_esc_list"; /** * 所有已开通商圈 */ public static final String SYS_ESC_LIST = "cache:api:esc_list"; public static final Integer SYS_CITY_LIST_EXPIRE_TIME_SECONDS = 60 * 60 * 24 * 15; /** * 验证码过期时间:5分钟 */ public static final Integer CHECKCODE_EXPIRE_TIME_SECONDS = 5 * 60 * 1000; /** * 验证码在redis中的存储时间:30分钟 */ public static final Integer CHECKCODE_EXPIRE_TIME_SAVE_SECONDS = 30 * 60 * 1000; /** * 广告类图片 */ public static final String CACHE_IMAGE_RES_ADV = "cache:image_dir:" + SysConsts.IMAGE_RES_ADV; /** * 体验服务中心相关图片 */ public static final String CACHE_IMAGE_RES_ESC = "cache:image_dir:" + SysConsts.IMAGE_RES_ESC; /** * 品牌店铺相关图片 */ public static final String CACHE_IMAGE_RES_SHOP = "cache:image_dir:" + SysConsts.IMAGE_RES_SHOP; /** * 产品相关图片 */ public static final String CACHE_IMAGE_RES_PRODUCT = "cache:image_dir:" + SysConsts.IMAGE_RES_PRODUCT; /** * 其他图标/logo相关图片 */ public static final String CACHE_IMAGE_RES_ICON = "cache:image_dir:" + SysConsts.IMAGE_RES_ICON; /** * 程序使用静态文件资源 */ public static final String CACHE_IMAGE_RES_STATIC = "cache:image_dir:" + SysConsts.IMAGE_RES_STATIC; /** * 商品分类保存 */ public static final String CACHE_GOODS_CATE = "cache:goodscate"; /** * 商品分类保存过期时间 */ public static final Integer CACHE_GOODS_CATE_EXPIRE_TIME = 60 * 10; /** * 品牌保存 */ public static final String CACHE_GOODS_BRAND = "cache:goodsbrand"; /** * 平台品牌保存 */ public static final String CACHE_GOODS_BRAND_PLATFORM = "cache:goodsbrand:platform"; /** * 商家品牌保存 */ public static final String CACHE_GOODS_BRAND_SHOP = "cache:goodsbrand:shop"; /** * 品牌保存过期时间 */ public static final Integer CACHE_GOODS_BRAND_EXPIRE_TIME = 10 * 60; public static final String CACHE_P_USERINFO = "cache:piduserinfo"; public static final String CACHE_ORDER_UN_PAY = "cache:order:unpay"; public static final Long CACHE_ORDER_UN_PAY_EXPIRE_TIME = 24 * 60 * 60 * 1000L; public static final String CACHE_ORDER_COMMIT = "cache:commit:order:userid_"; public static final Long CACHE_ORDER_COMMIT_EXPIRE_TIME = 3 * CACHE_ORDER_UN_PAY_EXPIRE_TIME; public static final String CACHE_WORKBENCH_UPDATE_MAX_INTEGRATL = "cache:workbeanch:updatemaxintegratl:userid_"; public static final Long CACHE_SERVICE_EXPIRE_TIME = 30 * 24 * 60 * 60 * 1000L ; public static final Integer CACHE_P_USERINFO_EXPIRE_TIME = 30 * 60; public static final String CACHE_RANDOM_CATE_LIST = "cache:random_cate:list"; public static final String CACHE_TAKE_ORDER = "cache:take_order:shop_"; public static final String CACHE_SHOP_GOODS_PLUS_VOLUME = "cache:shop_goods:plusVolume"; public static final String CACHE_SHOP_INFO_PLUS_VOLUME = "cache:shop_info:plusVolume"; public static final String CACHE_SYS_TEMPLATE_CACHE = "cache:sms_template:"; public static final String CACHE_TOKEN = "cache:token:"; public static final String CACHE_SHOP_IMMEDIATELY_COMMIT = "cache:shop:immediately:commit:userid_"; public static final Long CACHE_SHOP_IMMEDIATELY_COMMIT_EXPIRE_TIME = 10000L; }
饿虎岗资源网 Design By www.oxmxm.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
饿虎岗资源网 Design By www.oxmxm.com
暂无评论...
更新日志
2024年11月15日
2024年11月15日
- 黄乙玲1988-无稳定的爱心肝乱糟糟[日本东芝1M版][WAV+CUE]
- 群星《我们的歌第六季 第3期》[320K/MP3][70.68MB]
- 群星《我们的歌第六季 第3期》[FLAC/分轨][369.48MB]
- 群星《燃!沙排少女 影视原声带》[320K/MP3][175.61MB]
- 乱斗海盗瞎6胜卡组推荐一览 深暗领域乱斗海盗瞎卡组分享
- 炉石传说乱斗6胜卡组分享一览 深暗领域乱斗6胜卡组代码推荐
- 炉石传说乱斗本周卡组合集 乱斗模式卡组最新推荐
- 佟妍.2015-七窍玲珑心【万马旦】【WAV+CUE】
- 叶振棠陈晓慧.1986-龙的心·俘虏你(2006复黑限量版)【永恒】【WAV+CUE】
- 陈慧琳.1998-爱我不爱(国)【福茂】【WAV+CUE】
- 咪咕快游豪礼放送,百元京东卡、海量欢乐豆就在咪咕咪粉节!
- 双11百吋大屏焕新“热”,海信AI画质电视成最大赢家
- 海信电视E8N Ultra:真正的百吋,不止是大!
- 曾庆瑜1990-曾庆瑜历年精选[派森][WAV+CUE]
- 叶玉卿1999-深情之选[飞图][WAV+CUE]