Cache

open class Cache(pointer: <Error class: unknown class><<Error class: unknown class>>) : SessionFeature

File-based cache for HTTP resources.

Skipped during bindings generation

  • method cache-dir: Property has no getter nor setter

  • method cache-type: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(cacheDir: String? = null, cacheType: CacheType)

Creates a new #SoupCache.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val soupCachePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val soupSessionFeaturePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun clear()

Will remove all entries in the @cache plus all the cache files.

Link copied to clipboard
open fun dump()

Synchronously writes the cache index out to disk.

Link copied to clipboard
open fun flush()

Forces all pending writes in the @cache to be committed to disk.

Link copied to clipboard
open fun getMaxSize(): <Error class: unknown class>

Gets the maximum size of the cache.

Link copied to clipboard
open fun load()

Loads the contents of @cache's index into memory.

Link copied to clipboard
open fun setMaxSize(maxSize: <Error class: unknown class>)

Sets the maximum size of the cache.