putCachedOcsp method

void putCachedOcsp(
  1. String key,
  2. Uint8List value, {
  3. Duration ttl = const Duration(minutes: 5),
})

Optional OCSP cache with TTL to avoid mass re-fetch.

Implementation

void putCachedOcsp(String key, Uint8List value,
    {Duration ttl = const Duration(minutes: 5)}) {
  _writeTtlCache(_ocspCache, key, value, ttl);
}