CacheMemory

open class CacheMemory : CacheEngine, @unchecked Sendable

内存缓存

  • 单例模式

    Declaration

    Swift

    public static let shared: CacheMemory

CacheEngineProtocol

  • 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)
  • Declaration

    Swift

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

    Swift

    override open func clearAllCaches()
  • Declaration

    Swift

    override open func readCacheKeys() -> [String]