MemoryCache (webserver.staticcontent) Configuration

Type: io.helidon.webserver.staticcontent.MemoryCache

Configuration options

Optional configuration options
keytypedefault valuedescription
capacity

Size

50 mB

Capacity of the cached bytes of file content. If set to 0, the cache is unlimited. To disable caching, set enabled() to false, or do not configure a memory cache at all.

The capacity must be less than java.lang.Long.MAX_VALUE bytes, though you must be careful still, as it must fit into the heap size.

enabled

boolean

true

Whether the cache is enabled, defaults to true.