getOrAdd<T> abstract method
Try to get a value from the cache by key. if the key is not in the cache, will be created.
Implementation
Future<T> getOrAdd<T>(
String key, {
required Future<T> Function() addValue,
bool autoRemove = true,
Duration expiration = const Duration(seconds: 60),
bool listen = true,
});