|
inline |
Caches the object to disk asynchronously and deletes the in-memory copy eventually.
References syten::AsyncCached< Type >::cache(), syten::Caching::cur_workers, syten::Caching::do_cache, std::thread::join(), std::thread::joinable(), syten::AsyncCached< Type >::log(), syten::Caching::max_workers, syten::AsyncCached< Type >::mtex, syten::Caching::mtx_workers, syten::AsyncCached< Type >::worker, and syten::AsyncCached< Type >::worker_is_running.
Referenced by syten::AsyncCached< Type >::maybe_cache_async().