BackForwardCacheSettings.Builder


class BackForwardCacheSettings.Builder


Builder for BackForwardCacheSettings.

Summary

Public constructors

Public functions

BackForwardCacheSettings

Builds the BackForwardCacheSettings object.

BackForwardCacheSettings.Builder
setMaxPagesInCache(maxPagesInCache: Int)

Sets the maximum number of pages that can be stored in the back-forward cache.

BackForwardCacheSettings.Builder
setTimeoutSeconds(timeoutInSeconds: Long)

Sets the timeout for pages in the back-forward cache.

Public constructors

Builder

Added in 1.15.0-alpha03
Builder()

Public functions

setMaxPagesInCache

fun setMaxPagesInCache(maxPagesInCache: Int): BackForwardCacheSettings.Builder

Sets the maximum number of pages that can be stored in the back-forward cache.

Parameters
maxPagesInCache: Int

The maximum number of pages.

Returns
BackForwardCacheSettings.Builder

This builder.

setTimeoutSeconds

fun setTimeoutSeconds(timeoutInSeconds: Long): BackForwardCacheSettings.Builder

Sets the timeout for pages in the back-forward cache.

Parameters
timeoutInSeconds: Long

The timeout in seconds.

Returns
BackForwardCacheSettings.Builder

This builder.