MemoryCache

public class MemoryCache<Element> : CacheProtocol where Element : NSCoding

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(countLimit: Int? = nil)

Synchronous

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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