You are viewing documentation for a previous version of this software.

Switch to the latest stable version.

SQLiteNormalizedCache


EXTENSION

SQLiteNormalizedCache

Swift
1extension SQLiteNormalizedCache: NormalizedCache

Methods

loadRecords(forKeys:)

Swift
1public func loadRecords(forKeys keys: Set<CacheKey>) throws -> [CacheKey: Record]

Parameters

NameDescription
keyThe cache keys to load data for

merge(records:)

Swift
1public func merge(records: RecordSet) throws -> Set<CacheKey>

Parameters

NameDescription
recordsThe set of records to merge.

removeRecord(for:)

Swift
1public func removeRecord(for key: CacheKey) throws

Parameters

NameDescription
keyThe cache key to remove the record for

removeRecords(matching:)

Swift
1public func removeRecords(matching pattern: CacheKey) throws

Parameters

NameDescription
patternThe pattern that will be applied to find matching keys.

clear()

Swift
1public func clear() throws
Feedback

Edit on GitHub

Forums