CacheType
public struct CacheType : RawRepresentable, Equatable, Hashable, Sendable
缓存类型枚举
-
Declaration
Swift
public typealias RawValue = String -
默认缓存,同文件
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: String -
Declaration
Swift
public init(rawValue: String) -
Undocumented
Declaration
Swift
public init(_ rawValue: String)
-
MMKV缓存
Declaration
Swift
public static let mmkv: CacheType
View on GitHub