mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-05-11 13:07:36 +08:00
feat: cache impl done
This commit is contained in:
@@ -9,7 +9,7 @@ from typing import Dict, List
|
||||
import httpx
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from proxy import IpGetError, IpInfoModel, ProxyProvider, RedisDbIpCache
|
||||
from proxy import IpCache, IpInfoModel, ProxyProvider
|
||||
from proxy.types import ProviderNameEnum
|
||||
from tools import utils
|
||||
|
||||
@@ -58,7 +58,7 @@ class KuaiDaiLiProxy(ProxyProvider):
|
||||
self.api_base = "https://dps.kdlapi.com/"
|
||||
self.secret_id = kdl_secret_id
|
||||
self.signature = kdl_signature
|
||||
self.ip_cache = RedisDbIpCache()
|
||||
self.ip_cache = IpCache()
|
||||
self.proxy_brand_name = ProviderNameEnum.KUAI_DAILI_PROVIDER.value
|
||||
self.params = {
|
||||
"secret_id": self.secret_id,
|
||||
|
||||
Reference in New Issue
Block a user