The ktor library has support for caching HTTP requests, but that cache is in-memory only. We want to be able to cache requests across different calls to the executable, so we need to use a persistent store for that. The ktor caching support is exposed via a simple interface that we can implement.
The ktorm project can be used for connecting the cache database.
In addition to the path to the sqlite database to work with, callers will also need to provide the name of the table to use for storage.
The
ktorlibrary has support for caching HTTP requests, but that cache is in-memory only. We want to be able to cache requests across different calls to the executable, so we need to use a persistent store for that. Thektorcaching support is exposed via a simple interface that we can implement.The
ktormproject can be used for connecting the cache database.In addition to the path to the sqlite database to work with, callers will also need to provide the name of the table to use for storage.