CacheUserDefaults

open class CacheUserDefaults : CacheEngine

UserDefaults缓存。复杂对象需遵循AnyArchivable协议

  • 单例模式

    Declaration

    Swift

    public static let shared: CacheUserDefaults
  • 初始化

    Declaration

    Swift

    public override init()
  • 分组对象

    Declaration

    Swift

    public init(group: String?)

CacheEngineProtocol

  • Undocumented

    Declaration

    Swift

    open override func readCache(forKey key: String) -> Any?
  • Undocumented

    Declaration

    Swift

    open override func writeCache(_ object: Any, forKey key: String)
  • Undocumented

    Declaration

    Swift

    open override func clearCache(forKey key: String)
  • Undocumented

    Declaration

    Swift

    open override func clearAllCaches()