QNDnsCacheFile.h 605 B

12345678910111213141516171819202122232425
  1. //
  2. // QNDnsCacheFile.h
  3. // QnDNS
  4. //
  5. // Created by yangsen on 2020/3/26.
  6. // Copyright © 2020 com.qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "QNRecorderDelegate.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface QNDnsCacheFile : NSObject<QNRecorderDelegate>
  12. /// DNS解析信息本地缓存路径
  13. @property(nonatomic, copy, readonly)NSString *directory;
  14. /// 构造方法 路径不存在,或进行创建,创建失败返回为nil
  15. + (instancetype _Nullable)dnsCacheFile:(NSString *)directory
  16. error:(NSError **)perror;
  17. @end
  18. NS_ASSUME_NONNULL_END