feat : oss callback

This commit is contained in:
2024-10-31 17:57:49 +08:00
parent 2d8f35ddf0
commit c4a59d68f8
12 changed files with 435 additions and 6 deletions

View File

@@ -12,4 +12,22 @@ class CommonRedisKey
{
return '__system:address:list:'.$type;
}
/**
* 待删除oss文件队列-根据url
* @return string
*/
public static function getDeleteOssImgListByUrl(): string
{
return '__system:deleteOssImgList:url';
}
/**
* 待删除oss文件队列-根据id
* @return string
*/
public static function getDeleteOssImgListByOssId(): string
{
return '__system:deleteOssImgList:oss_id';
}
}

View File

@@ -421,7 +421,7 @@ class RedisCache
* @throws NotFoundExceptionInterface
* @throws RedisException
*/
public function lPush(string $key, string $data, string $poolName = 'default')
public function lPush(string $key, string $data, string $poolName = 'default'): false|int|Redis
{
return $this->getRedis($poolName)->lPush($key, $data);
}