Configuration

class Configuration<K, V>(var maxSize: Long)

Configuration for InMemoryKache. It is used as a receiver of InMemoryKache builder.

Constructors

Link copied to clipboard
constructor(maxSize: Long)

Properties

Link copied to clipboard
var creationScope: CoroutineScope

The coroutine scope used for executing creationFunction of put requests.

Link copied to clipboard

The duration after which the elements are removed after they are accessed.

Link copied to clipboard

The duration after which the elements are removed after they are written.

Link copied to clipboard

The maximum capacity of the cache.

Link copied to clipboard

A listener called when an entry is removed.

Link copied to clipboard

A function used for calculating the size of the elements.

Link copied to clipboard

The strategy used for evicting elements.

Link copied to clipboard

The time source used for calculating the time marks of the elements. Only used if the expireAfterWriteDuration or expireAfterAccessDuration is set.