interface CacheOptions {
    cacheCleanupInterval?: number;
    negativeTtl?: number;
    positiveTtl?: number;
}

Hierarchy (view full)

Properties

cacheCleanupInterval?: number

Cache cleanup interval, in milliseconds.

Default Value

5 minutes

Remarks

This determines how often expired cache entries are deleted.

negativeTtl?: number

Cache lifetime for unsuccessful retrieval, in milliseconds.

Default Value

10 seconds

Remarks

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

positiveTtl?: number

Cache lifetime for successful retrieval, in milliseconds.

Default Value

1 hour

Remarks

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