DebuggableNormalizedCache
public class DebuggableNormalizedCache
extension DebuggableNormalizedCache: NormalizedCache
DebuggableNormalizedCache
is a bridge between ApolloDebugServer
and ApolloStore
.
You should instantiate both ApolloDebugServer
and ApolloStore
with the same instance of this class.
-
Initializes the receiver with the underlying cache object.
Declaration
Swift
public init(cache: NormalizedCache)
Parameters
cache
The underlying cache.
-
Declaration
Swift
public func loadRecords(forKeys keys: [CacheKey], callbackQueue: DispatchQueue?, completion: @escaping (Result<[Record?], Error>) -> Void)
-
Declaration
Swift
public func merge(records: RecordSet, callbackQueue: DispatchQueue?, completion: @escaping (Result<Set<CacheKey>, Error>) -> Void)
-
Declaration
Swift
public func clear(callbackQueue: DispatchQueue?, completion: ((Result<Void, Error>) -> Void)?)
-
Undocumented
Declaration
Swift
public func clearImmediately() throws