interface Options {
    cacheCleanupInterval?: number;
    cOpts?: ConsumerOptions;
    interestLifetime?: number;
    negativeTtl?: number;
    owner?: object;
    positiveTtl?: number;
}

Hierarchy (view full)

Properties

cacheCleanupInterval?: number

Cache cleanup interval, in milliseconds.

5 minutes

This determines how often expired cache entries are deleted.

Consumer options.

  • .describe defaults to "CertFetcher".
interestLifetime?: number

InterestLifetime for certificate retrieval.

If specified, .cOpts.modifyInterest is overridden.

negativeTtl?: number

Cache lifetime for unsuccessful retrieval, in milliseconds.

10 seconds

During this period, report the certificate as un-retrievable instead of re-fetching.

owner?: object

Cache instance owner as WeakMap key.

.cOpts.fw ?? Forwarder.getDefault()

CertFetchers with the same .owner share the same cache instance. Cache options are determined when it's first created.

positiveTtl?: number

Cache lifetime for successful retrieval, in milliseconds.

1 hour

During this period, return the same certificate instead of re-fetching.