|void||cuflow_cacheconf_init (cuflow_cacheconf_t conf, cu_bool_t(*manager)(cuflow_cacheconf_t conf, struct timespec *t_now))|
|cu_bool_t(*)(cuflow_cacheconf_t conf, struct timespec *t_now)||manager|
Construct a cache configuration. manager is a function which will be called once during this construction, then occationally afterwards. If the parameters were not set prior to this call, then manager must set them on it's first invokation. It may also update other parameters contituously to implement heuristics for controlling memory consumption.
manager should normally always return true, but if there is need to shut down the cache configuration, false may be returned. After that, cache clock will stop and cached objects will no longer be freed. Therefore, the client should make sure to destruct associated caches with cuflow_cache_deinit in conjuction with a false return from manager.