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

@@ -12,6 +12,7 @@ namespace App\Cron\Oss;
use App\Cache\Redis\Common\CommonRedisKey;
use App\Cache\Redis\RedisCache;
use App\Constants\RedisCode;
use App\Lib\Log;
use Hyperf\Crontab\Annotation\Crontab;
use Hyperf\Di\Annotation\Inject;
@@ -62,7 +63,7 @@ class OssDelByUrlTask
$delNum = 0;
for ($i = 1; $i < 50; $i++) {
$url = $this->redis->rPop($key,'system');
$url = $this->redis->rPop($key,RedisCode::SYSTEM_DB);
if (!empty($url)) {
$delNum++;