maybeCacheAll method

Future<void> maybeCacheAll(
  1. String keyId,
  2. Uint8List key
)

Implementation

Future<void> maybeCacheAll(String keyId, Uint8List key) async {
  for (final type in cacheTypes) {
    final secret = await getCached(type);
    if (secret == null) {
      try {
        await getStored(type, keyId, key);
      } catch (_) {
        // the entry wasn't stored, just ignore it
      }
    }
  }
}