CacheMemory

open class CacheMemory : CacheEngine, @unchecked Sendable

内存缓存

  • 单例模式

    Declaration

    Swift

    public static let shared: CacheMemory
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    override open func writeCache<T>(_ object: T, forKey key: String)
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    override open func clearAllCaches()