# addCachedDiscoInfo method

Future <void> addCachedDiscoInfo(

1. MapEntry <DiscoCacheKey, DiscoInfo> discoInfoEntry

)

Add a `DiscoCacheKey`-DiscoInfo pair `discoInfoEntry` to the internal cache.

## Implementation

    Future<void> addCachedDiscoInfo(
      MapEntry<DiscoCacheKey, DiscoInfo> discoInfoEntry,
    ) async {
      await _cacheLock.synchronized(() {
        _discoInfoCache[discoInfoEntry.key] = discoInfoEntry.value;
      });
    }