Files
waf-platform/HttpDNSSDK/sdk/ios/NewHttpDNS/Persistent/HttpdnsDB.h
2026-03-05 02:44:43 +08:00

76 lines
1.6 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// HttpdnsDB.h
// NewHttpDNS
//
// Created by xuyecan on 2025/3/15.
// Copyright 穢 2025 trustapp.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HttpdnsHostRecord.h"
NS_ASSUME_NONNULL_BEGIN
/**
* SQLite3<65>唳旿摨𤘪<E691A8>雿𦦵掩嚗𣬚鍂鈭擧<E988AD><EFBFBD><E98A8B>摮睃<E691AE>HttpDNS蝻枏<E89DBB>霈啣<E99C88>
*/
@interface HttpdnsDB : NSObject
/**
* <20><EFBFBD><E598A5>𡝗㺭<F0A19D97><EFBFBD>
* @param accountId 韐行<E99F90>ID
* @return <20>唳旿摨枏<E691A8>靘?
*/
- (instancetype)initWithAccountId:(NSInteger)accountId;
/**
* <20>𥕦遣<F0A595A6>𡝗凒<F0A19D97>啗扇敶?
* @param record 銝餅㦤霈啣<E99C88>
* @return <20>臬炏<E887AC>𣂼<EFBFBD>
*/
- (BOOL)createOrUpdate:(HttpdnsHostRecord *)record;
/**
* <20>寞旿蝻枏<E89DBB><E69E8F>格䰻霂扇敶?
* @param cacheKey 蝻枏<E89DBB><E69E8F>?
* @return <20>亥砭<E4BAA5><EFBFBD>霈啣<E99C88><EFBFBD><E59A97><EFBFBD><EFBFBD>摮睃銁<E79D83><EFBFBD><E8BAB0>𧵳il
*/
- (nullable HttpdnsHostRecord *)selectByCacheKey:(NSString *)cacheKey;
/**
* <20>寞旿蝻枏<E89DBB><E69E8F><EFBFBD><E6A180>方扇敶?
* @param cacheKey 蝻枏<E89DBB><E69E8F>?
* @return <20>臬炏<E887AC>𣂼<EFBFBD>
*/
- (BOOL)deleteByCacheKey:(NSString *)cacheKey;
/**
* <20>寞旿銝餅㦤<E9A485>齿㺭蝏<E3BAAD><EFBFBD><EFBFBD><E8AAA9>方扇敶?
* @param hostNameArr 銝餅㦤<E9A485>齿㺭蝏?
* @return <20>𣂼<EFBFBD><F0A382BC>𣳇膄<F0A3B387><E88684>扇敶閙㺭<E99699>?
*/
- (NSInteger)deleteByHostNameArr:(NSArray<NSString *> *)hostNameArr;
/**
* <20><EFBFBD><E79195><EFBFBD><EFBFBD><EFBFBD>摮䁅扇敶?
* @return <20><><EFBFBD><EFBFBD>摮䁅扇敶閙㺭蝏?
*/
- (NSArray<HttpdnsHostRecord *> *)getAllRecords;
/**
* 皜<><E79A9C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>園𡢿<E59C92>孵歇餈<E6AD87><E9A488><EFBFBD><EFBFBD>扇敶?
* @param specifiedTime <20><><EFBFBD><EFBFBD><EFBFBD>𧒄<EFBFBD><EFBFBD>嚗Ềpoch<63>園𡢿嚗?
* @return 皜<><E79A9C><EFBFBD><EFBFBD>扇敶閙㺭<E99699>?
*/
- (NSInteger)cleanRecordAlreadExpiredAt:(NSTimeInterval)specifiedTime;
/**
* <20>𣳇膄<F0A3B387><E88684><EFBFBD>㕑扇敶?
* @return <20>臬炏<E887AC>𣂼<EFBFBD>
*/
- (BOOL)deleteAll;
@end
NS_ASSUME_NONNULL_END