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. See Duration

Link copied to clipboard

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

Link copied to clipboard

The max size of this cache. For more information. See InMemoryKache.maxSize.

Link copied to clipboard

listener called when an entry is removed for any reason. See EntryRemovedListener

Link copied to clipboard

function used for calculating the size of the elements. See SizeCalculator

Link copied to clipboard

The strategy used for evicting elements. See KacheStrategy

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. See TimeSource