cache

fun cache(directory: File, maxSize: Long = DEFAULT_HTTP_CACHE_SIZE): ArcGISHttpClient.Builder

Sets the HTTP cache to a cache with the provided directory and maxSize.

Since

200.2.0

Parameters

directory

the directory in which to store the cache

maxSize

the maximum size of the cache. Must be greater than 0.

Throws

if maxSize is less than or equal to 0.


Sets the cache to a cache with the provided maxSize and DEFAULT_HTTP_CACHE_LOCATION as the location.

Since

200.2.0

Parameters

maxSize

the maximum size of the cache. Must be greater than 0.

Throws

if maxSize is less than or equal to 0.