Skip to content

Commit ba3b894

Browse files
Nick feedback. Update doc comments on CacheSettings.maxAge
1 parent 2572377 commit ba3b894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Cache/CacheSettings.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public struct CacheSettings: Sendable {
4646
/// - storage: The storage mechanism to use. Defaults to `.persistent`.
4747
/// - maxSize: The maximum desired size of the cache in bytes. Defaults to 100MB.
4848
/// - maxAge: The max time interval before a queries cache is considered stale and refreshed
49-
/// from the server
49+
/// 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.
5051
public init(storage: Storage = .persistent, maxSize: UInt64 = 100_000_000,
5152
maxAge: TimeInterval = 0) {
5253
self.storage = storage

0 commit comments

Comments
 (0)