| | |
| | | /** |
| | | * 缓存有效期,默认720(分钟) |
| | | */ |
| | | public final static long EXPIRATION = 720; |
| | | public final static long EXPIRATION = 7200; |
| | | |
| | | /** |
| | | * 缓存刷新时间,默认120(分钟) |
| | |
| | | * 权限缓存前缀 |
| | | */ |
| | | public final static String LOGIN_TOKEN_KEY = "login_tokens:"; |
| | | /** |
| | | * APP用户登录token缓存前缀 |
| | | */ |
| | | public final static String APP_USER_LOGIN_TOKEN_KEY = "app_login_tokens:"; |
| | | |
| | | /** |
| | | * 验证码 redis key |
| | |
| | | * 登录IP黑名单 cache key |
| | | */ |
| | | public static final String SYS_LOGIN_BLACKIPLIST = SYS_CONFIG_KEY + "sys.login.blackIPList"; |
| | | public static final String APP_CAPTCHA_CODE_PREFIX = "app_captcha_code:"; |
| | | |
| | | /** |
| | | * APP注册验证码 redis key |
| | | */ |
| | | public static final String APP_REGISTER_CAPTCHA_CODE_PREFIX = "app_register_captcha_code:"; |
| | | /** |
| | | * APP登录验证码 redis key |
| | | */ |
| | | public static final String APP_LOGIN_CAPTCHA_CODE_PREFIX = "app_login_captcha_code:"; |
| | | /** |
| | | * APP修改密码验证码 redis key |
| | | */ |
| | | public static final String APP_PASSWORD_CAPTCHA_CODE_PREFIX = "app_password_captcha_code:"; |
| | | /** |
| | | * APP第三方登录手机号校验验证码 redis key |
| | | */ |
| | | public static final String APP_VERIFY_CAPTCHA_CODE_PREFIX = "app_verify_captcha_code:"; |
| | | /** |
| | | * 更换绑定手机号 redis key |
| | | */ |
| | | public static final String APP_CHANGE_PHONE_CODE_PREFIX = "app_change_phone_code:"; |
| | | /** |
| | | * 添加银行卡 redis key |
| | | */ |
| | | public static final String ADD_CARD_PHONE_CODE_PREFIX = "add_card_phone_code:"; |
| | | /** |
| | | * APP第三方登录手机号校验验证码修改密码秘钥 redis key |
| | | */ |
| | | public static final String APP_PASSWORD_SECRET_PREFIX = "app_password_secret:"; |
| | | public static final String MANAGEMENT_PASSWORD_SECRET_PREFIX = "management_password_secret:"; |
| | | |
| | | } |