-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move serialization outside of cache lock (#5101)
Co-authored-by: Martin Bonnin <[email protected]>
- Loading branch information
1 parent
88b5739
commit 6a06344
Showing
8 changed files
with
262 additions
and
144 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...ubating/src/commonMain/kotlin/com/apollographql/apollo3/cache/normalized/api/CacheData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.apollographql.apollo3.cache.normalized.api | ||
|
||
import com.apollographql.apollo3.annotations.ApolloInternal | ||
|
||
/** | ||
* Data read from the cache that can be represented as a JSON map. | ||
* | ||
* @see [toData] | ||
*/ | ||
@ApolloInternal | ||
interface CacheData { | ||
fun toMap(): Map<String, Any?> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...che-api/src/commonMain/kotlin/com/apollographql/apollo3/cache/normalized/api/CacheData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.apollographql.apollo3.cache.normalized.api | ||
|
||
import com.apollographql.apollo3.annotations.ApolloInternal | ||
|
||
/** | ||
* Data read from the cache that can be represented as a JSON map. | ||
* | ||
* @see [toData] | ||
*/ | ||
@ApolloInternal | ||
interface CacheData { | ||
fun toMap(): Map<String, Any?> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.