42 lines
831 B
PHP
42 lines
831 B
PHP
<?php
|
|
declare (strict_types=1);
|
|
|
|
namespace app\config;
|
|
|
|
/**
|
|
* @author canny
|
|
* @date 2023/10/23 14:42
|
|
**/
|
|
class BusinessCacheKey
|
|
{
|
|
const MINUTE = 60;
|
|
const HOUR = 3600;
|
|
const DAY = 86400;
|
|
const TEN_DAY = 864000;
|
|
const MONTH = 2592000; //一个月
|
|
|
|
const SITE_TOKEN_LIST = [
|
|
'key' => 'site_token_list:',
|
|
'ttl' => 7200
|
|
];
|
|
const SITE_SMS_CODE = [
|
|
'key' => 'site_sms_code',
|
|
'ttl' => self::MINUTE * 5
|
|
];
|
|
|
|
const FRONT_TOKEN_LIST = [
|
|
'key' => 'front_token_list',
|
|
'ttl' => self::DAY
|
|
];
|
|
// 解约短信验证码
|
|
const RELEASE_SMS_CODE = [
|
|
'key' => 'release_sms_code',
|
|
'ttl' => self::MINUTE * 5
|
|
];
|
|
|
|
const AGREEMENT_PAY_SEND_SMS = [
|
|
'key' => 'agreement_pay_send_sms',
|
|
'ttl' => self::DAY * 2
|
|
];
|
|
|
|
} |