ifNotCached method
Gets cached value or computes and caches it if not found.
Implementation
Future<dynamic> ifNotCached(
String key,
Future<dynamic> Function() computeValue, {
Map<String, dynamic>? meta,
bool cacheOnNullValues = false,
}) async {
return await HHive.ifNotCachedStatic(
HHPayload(env: config.env, key: key, metadata: meta),
computeValue,
cacheOnNullValues: cacheOnNullValues,
);
}