cmbYouku_Api/app/config/BusinessCacheKey.php

37 lines
712 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
];
}