HyperdriveConfigCaching

data class HyperdriveConfigCaching(val disabled: Boolean? = null, val maxAge: Int? = null, val staleWhileRevalidate: Int? = null)

Constructors

Link copied to clipboard
constructor(disabled: Boolean? = null, maxAge: Int? = null, staleWhileRevalidate: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val disabled: Boolean? = null

When set to true, disables the caching of SQL responses. (Default: false)

Link copied to clipboard
val maxAge: Int? = null

When present, specifies max duration for which items should persist in the cache. Not returned if set to default. (Default: 60)

Link copied to clipboard

When present, indicates the number of seconds cache may serve the response after it becomes stale. Not returned if set to default. (Default: 15)