Bedrock

Bedrock-specific cache control options. Bedrock supports only two TTL values: 5 minutes and 1 hour.

Inheritors

Types

Link copied to clipboard

Cache with the default TTL (no explicit TTL sent to Bedrock).

Link copied to clipboard

Cache for 5 minutes.

Link copied to clipboard

Cache for 1 hour.

Functions

Link copied to clipboard
inline fun <T : CacheControl> CacheControl.require(): T

Requires this CacheControl to be of the specified type T, or throws an IllegalStateException.