You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Apollo/ApolloClientProtocol.swift
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,10 @@ public protocol ApolloClientProtocol: class {
12
12
/// Clears the underlying cache.
13
13
/// Be aware: In more complex setups, the same underlying cache can be used across multiple instances, so if you call this on one instance, it'll clear that cache across all instances which share that cache.
14
14
///
15
-
/// - Returns: Promise which fulfills when clear is complete.
16
-
func clearCache()->Promise<Void>
15
+
/// - Parameters:
16
+
/// - callbackQueue: The queue to fall back on. Should default to the main queue.
17
+
/// - completion: [optional] A completion closure to execute when clearing has completed. Should default to nil.
@@ -50,14 +50,14 @@ public final class ApolloStore {
50
50
/// Clears the instance of the cache. Note that a cache can be shared across multiple `ApolloClient` objects, so clearing that underlying cache will clear it for all clients.
51
51
///
52
52
/// - Returns: A promise which fulfills when the Cache is cleared.
/// Performs an operation within a read transaction
104
+
///
105
+
/// - Parameters:
106
+
/// - body: The body of the operation to perform.
107
+
/// - callbackQueue: [optional] The callback queue to use to perform the completion block on. Will perform on the current queue if not provided. Defaults to nil.
108
+
/// - completion: [optional] The completion block to perform when the read transaction completes. Defaults to nil.
/// - callbackQueue: [optional] An alternate queue to fire the completion closure on. If nil, will fire on the current queue.
8
+
/// - completion: A completion closure to fire when the load has completed. If successful, will contain an array. Each index will contain either the record corresponding to the key at the same index in the passed-in array of cache keys, or nil if that record was not found.
/// - callbackQueue: [optional] An alternate queue to fire the completion closure on. If nil, will fire on the current queue.
18
+
/// - completion: A completion closure to fire when the merge has completed. If successful, will contain a set of keys corresponding to *fields* that have changed (i.e. QUERY_ROOT.Foo.myField). These are the same type of keys as are returned by RecordSet.merge(records:).
0 commit comments