Skip to content

Commit 0a6f5c5

Browse files
committed
Fix KDocs that were on the wrong symbol
1 parent 959e6bc commit 0a6f5c5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

normalized-cache/src/commonMain/kotlin/com/apollographql/cache/normalized/options/fetchNoCache.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ internal class FetchNoCacheContext(val value: Boolean) : ExecutionContext.Elemen
1111
companion object Key : ExecutionContext.Key<FetchNoCacheContext>
1212
}
1313

14+
internal val ExecutionOptions.noCache: Boolean
15+
get() = executionContext[FetchNoCacheContext]?.value ?: false
16+
1417
/**
1518
* Sets whether to skip the cache.
1619
* If set to true, the cache will not be queried at all.
1720
*
1821
* Default: false
1922
*/
20-
internal val ExecutionOptions.noCache: Boolean
21-
get() = executionContext[FetchNoCacheContext]?.value ?: false
22-
2323
internal fun <T> MutableExecutionOptions<T>.noCache(noCache: Boolean): T {
2424
// noCache and onlyIfCached are mutually exclusive
2525
if (noCache) {

normalized-cache/src/commonMain/kotlin/com/apollographql/cache/normalized/options/serverErrorsAsCacheMisses.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ internal class ServerErrorsAsCacheMisses(val value: Boolean) : ExecutionContext.
1111
companion object Key : ExecutionContext.Key<ServerErrorsAsCacheMisses>
1212
}
1313

14+
internal val ExecutionOptions.serverErrorsAsCacheMisses: Boolean
15+
get() = executionContext[ServerErrorsAsCacheMisses]?.value ?: true
16+
1417
/**
1518
* Sets whether GraphQL errors in the cache should be treated as cache misses.
1619
*
@@ -19,9 +22,6 @@ internal class ServerErrorsAsCacheMisses(val value: Boolean) : ExecutionContext.
1922
*
2023
* Default: true
2124
*/
22-
internal val ExecutionOptions.serverErrorsAsCacheMisses: Boolean
23-
get() = executionContext[ServerErrorsAsCacheMisses]?.value ?: true
24-
2525
fun <T> MutableExecutionOptions<T>.serverErrorsAsCacheMisses(serverErrorsAsCacheMisses: Boolean): T =
2626
addExecutionContext(ServerErrorsAsCacheMisses(serverErrorsAsCacheMisses))
2727

0 commit comments

Comments
 (0)