Acceptor function.
Acceptor function.
Given an initially found value, this function should return true
if the value is still valid,
or false
if it is invalid and should be recomputed. This function is used only once during the initial
directory scan of the producer after it is created.
The maximum capacity of the cache.
The maximum capacity of the cache.
A function which is being called when an entry is evicted from cache.
A function which is being called when an entry is evicted from cache. The function must ensure that any associated resources are disposed of.
The context used by the cache to spawn future computations.
The context used by the cache to spawn future computations.
The file name extension to use, excluding leading period.
The file name extension to use, excluding leading period. It must only consist of letters and digits.
The directory where the cached values are stored.
The directory where the cached values are stored. If this directory does not exist upon cache creation, it will be created on the fly.
Associate resources space function.
Associate resources space function. Given a value, this function should compute the size in bytes of any additional resources used by this entry.
The configuration for the producer, containing information about the cache folder, cache capacity, etc.