helia
    Preparing search index...

    Interface DNSLinkOptions<Namespaces>

    interface DNSLinkOptions<
        Namespaces extends
            Record<string, DNSLinkParser<any>> = Record<string, DNSLinkParser<any>>,
    > {
        cacheMaxAge?: number;
        cacheMaxAnswers?: number;
        cacheSize?: number;
        namespaces?: Namespaces;
    }

    Type Parameters

    Index

    Properties

    cacheMaxAge?: number

    By default the DNS TTL will be used to calculate when a DNSLink lookup should be evicted from the cache, unless one is not available in which case this number of ms will be used.

    30_000
    
    cacheMaxAnswers?: number

    The maximum number of Answers to cache for each domain

    10
    
    cacheSize?: number

    How many DNSLink lookups to cache in memory

    1_000
    
    namespaces?: Namespaces

    By default /ipfs/..., /ipns/... and /dnslink/... record values are supported - to support other prefixes pass other value parsers here