# getCachedDiscoInfoFromJid method

Future <DiscoInfo?> getCachedDiscoInfoFromJid(

1. JID jid

)

If we know of `jid`'s capability hash, look up the `DiscoInfo` associated with that capability hash. If we don't know of `jid`'s capability hash, return null.

## Implementation

    Future<DiscoInfo?> getCachedDiscoInfoFromJid(JID jid) async {
      return _cacheLock.synchronized(() {
        final capHash = _jidToCapHashCache[jid.toString()];
        if (capHash == null) {
          return null;
        }

        return _capHashCache[capHash];
      });
    }