RetrostashKtorRuntime

class RetrostashKtorRuntime(val engine: RetrostashEngine, keyResolver: CoreKeyResolver = CoreKeyResolver())

Thin adapter that translates RetrostashKtorMetadata into QueryMetadata for the underlying RetrostashEngine. Used by RetrostashPlugin; can also be used directly for testing without spinning up a Ktor HttpClient.

Resolves invalidation templates against bindings / bodyBytes before passing them on to RetrostashEngine.invalidateTemplates — matches the semantics of RetrostashOkHttpInterceptor.

Direct cache control — peek, update, invalidate, clear — lives on cache. See RetrostashKtorCache and the README's Cache API section.

Constructors

Link copied to clipboard
constructor(engine: RetrostashEngine, keyResolver: CoreKeyResolver = CoreKeyResolver())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun invalidate(metadata: RetrostashKtorMetadata)
Link copied to clipboard
suspend fun persistQueryResult(metadata: RetrostashKtorMetadata, payload: ByteArray)
Link copied to clipboard