CachingRelation

open class CachingRelation : IntermediateRelation

This Relation passes data through unchanged, but it caches that data up to a certain limit. Putting this on one side of a join can allow updates to be intelligently filtered.

  • The currently cached rows.

    Declaration

    Swift

    public fileprivate(set) var cache: Set<Row>?
  • Initialize a caching relation wrapping another relation. If the number of rows in the relation is equal to or lower than limit, then those rows will be cached in cache.

    Declaration

    Swift

    public init(_ subRelation: Relation, limit: Int)
  • Undocumented

    Declaration

    Swift

    open override var contentProvider: RelationContentProvider { get }