STRUCT
RecordSet
public struct RecordSet
A set of cache records.
Properties
storage
public private(set) var storage: [CacheKey: Record] = [:]
isEmpty
public var isEmpty: Bool
keys
public var keys: [CacheKey]
Methods
init(records:)
public init<S: Sequence>(records: S) where S.Iterator.Element == Record
insert(_:)
public mutating func insert(_ record: Record)
clear()
public mutating func clear()
insert(contentsOf:)
public mutating func insert<S: Sequence>(contentsOf records: S) where S.Iterator.Element == Record
merge(records:)
@discardableResult public mutating func merge(records: RecordSet) -> Set<CacheKey>
merge(record:)
@discardableResult public mutating func merge(record: Record) -> Set<CacheKey>