CacheEngineProtocol
public protocol CacheEngineProtocol
缓存引擎内部协议。复杂对象需遵循NSCoding|AnyArchivable协议
-
从引擎读取某个缓存,内部方法,必须实现
Declaration
Swift
func readCache(forKey key: String) -> Any?
-
从引擎写入某个缓存,内部方法,必须实现
Declaration
Swift
func writeCache(_ object: Any, forKey key: String)
-
从引擎清空某个缓存,内部方法,必须实现
Declaration
Swift
func clearCache(forKey key: String)
-
从引擎清空所有缓存,内部方法,必须实现
Declaration
Swift
func clearAllCaches()