CacheType

public struct CacheType : RawRepresentable, Equatable, Hashable, Sendable

缓存类型枚举

  • Declaration

    Swift

    public typealias RawValue = Int
  • 默认缓存,同文件

    Declaration

    Swift

    public static let `default`: CacheType
  • 内存缓存

    Declaration

    Swift

    public static let memory: CacheType
  • UserDefaults缓存

    Declaration

    Swift

    public static let userDefaults: CacheType
  • Keychain缓存

    Declaration

    Swift

    public static let keychain: CacheType
  • 文件缓存

    Declaration

    Swift

    public static let file: CacheType
  • Sqlite数据库缓存

    Declaration

    Swift

    public static let sqlite: CacheType
  • Declaration

    Swift

    public var rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)
  • Undocumented

    Declaration

    Swift

    public init(_ rawValue: Int)