feat: redis
This commit is contained in:
@@ -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\Extend\DateUtil;
|
||||
use App\Lib\Log;
|
||||
use App\Model\OssObject;
|
||||
@@ -58,7 +59,7 @@ class OssDelByDisableTask
|
||||
|
||||
|
||||
foreach ($list->toArray() as $item) {
|
||||
$this->redis->lPush(CommonRedisKey::getDeleteOssImgListByOssId(), (string)$item,'system');
|
||||
$this->redis->lPush(CommonRedisKey::getDeleteOssImgListByOssId(), (string)$item,RedisCode::SYSTEM_DB);
|
||||
}
|
||||
|
||||
$this->log->notice(__CLASS__.'异步删除昨日无效图片');
|
||||
|
||||
Reference in New Issue
Block a user