EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
SQLiteNormalizedCache
EXTENSION
SQLiteNormalizedCache
Swift
1extension SQLiteNormalizedCache: NormalizedCacheMethods
loadRecords(forKeys:)
Swift
1public func loadRecords(forKeys keys: Set<CacheKey>) throws -> [CacheKey: Record]Parameters
| Name | Description |
|---|---|
| key | The cache keys to load data for |
merge(records:)
Swift
1public func merge(records: RecordSet) throws -> Set<CacheKey>Parameters
| Name | Description |
|---|---|
| records | The set of records to merge. |
removeRecord(for:)
Swift
1public func removeRecord(for key: CacheKey) throwsParameters
| Name | Description |
|---|---|
| key | The cache key to remove the record for |
removeRecords(matching:)
Swift
1public func removeRecords(matching pattern: CacheKey) throwsParameters
| Name | Description |
|---|---|
| pattern | The pattern that will be applied to find matching keys. |
clear()
Swift
1public func clear() throws