ComputeCacheCallback<CacheContentType> typedef
ComputeCacheCallback<CacheContentType> =
CacheContentType Function()
A signature for functions that computes the value to be cached.
It is called:
- On the creation of the cache;
- When CachedValue.refresh is manually called;
- When CachedValue.value is accessed and the cache is considered invalid.
Implementation
typedef ComputeCacheCallback<CacheContentType> = CacheContentType Function();