feat: redis

This commit is contained in:
2025-01-21 16:20:16 +08:00
parent df78fc705d
commit 2beb8d9e55
32 changed files with 310 additions and 84 deletions

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Constants;
class ConfigCode
{
const string TODAY_CUT_OFF_TIME_KEY = 'TodayCutOffTime';
const array DEFAULT_VALUE = [
self::TODAY_CUT_OFF_TIME_KEY => '15:00:00'
];
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Constants;
class RedisCode
{
CONST STRING SYSTEM_DB = 'system';
CONST STRING DEFAULT_DB = 'default';
CONST STRING LOCK_DB = 'lock';
}