We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2572377 commit ba3b894Copy full SHA for ba3b894
Sources/Cache/CacheSettings.swift
@@ -46,7 +46,8 @@ public struct CacheSettings: Sendable {
46
/// - storage: The storage mechanism to use. Defaults to `.persistent`.
47
/// - maxSize: The maximum desired size of the cache in bytes. Defaults to 100MB.
48
/// - maxAge: The max time interval before a queries cache is considered stale and refreshed
49
- /// from the server
+ /// from the server. Defaults to zero, implying queries results are always fetched from server and
50
+ /// also cached. Results can be fetched from cache using the `cacheOnly` flag.
51
public init(storage: Storage = .persistent, maxSize: UInt64 = 100_000_000,
52
maxAge: TimeInterval = 0) {
53
self.storage = storage
0 commit comments