🚀 Apollo Kotlin Normalized Cache
This repository hosts Apollo Kotlin's Normalized Cache.
- Add the dependencies to your project
dependencies {
implementation("com.apollographql.cache:normalized-cache:$cacheVersion")
implementation("com.apollographql.cache:normalized-cache-sqlite:$cacheVersion")
}
- Configure the compiler plugin
apollo {
service("service") {
plugin("com.apollographql.cache:normalized-cache-apollo-compiler-plugin:$cacheVersion") {
argument("com.apollographql.cache.packageName", packageName.get())
}
plugin("com.apollographql.cache:normalized-cache-apollo-compiler-plugin:$cacheVersion")
pluginArgument("com.apollographql.cache.packageName", packageName.get())
}
}
📚 Documentation
See the project website for documentation:
https://apollographql.github.io/apollo-kotlin-normalized-cache/
The Kdoc API reference can be found at:
https://apollographql.github.io/apollo-kotlin-normalized-cache/kdoc
The migration guide if you're coming from the previous version:
https://www.apollographql.com/docs/kotlin/caching/migration-guide