Cache

public class Cache<Element> : NSObject, CacheProtocol where Element : NSCoding

Undocumented

  • Undocumented

    Declaration

    Swift

    public let memory: MemoryCache<Element>
  • Undocumented

    Declaration

    Swift

    public let disk: DiskCache<Element>?
  • Undocumented

    Declaration

    Swift

    public init(directory: String? = nil)
  • Undocumented

    Declaration

    Swift

    public subscript(key: String) -> Element? { get set }
  • Undocumented

    Declaration

    Swift

    public func get(key: String, completion: @escaping ((Element?) -> Void))
  • Undocumented

    Declaration

    Swift

    public func set(key: String, value: Element, expiration: TimeInterval?, completion: (() -> Void)?)
  • Undocumented

    Declaration

    Swift

    public func set(key: String, value: Element, completion: (() -> Void)?)
  • Undocumented

    Declaration

    Swift

    public func remove(key: String, completion: (() -> Void)?)
  • Undocumented

    Declaration

    Swift

    public func removeAll(completion: (() -> Void)?)