getCached method
Returns key
value or computes it and caches it.
See checkCachedEntry, checkCacheLimit and getCachedAsync.
Implementation
V getCached(K key, V Function() computer, {int? cacheLimit}) {
checkCachedEntry(key);
checkCacheLimit(cacheLimit);
return putIfAbsent(key, computer);
}