[getdns-api] Priming the cache

Paul Hoffman paul.hoffman at vpnc.org
Wed Mar 13 08:11:51 MST 2013

On Mar 13, 2013, at 11:07 AM, William Chan (陈智昌) <willchan at chromium.org> wrote:

> I think the feature is reasonable, but I don't understand why it should be part of the API. Can someone explain why this is the best place to put it? Why not keep this implementation specific?
> The reason I ask is, does this require all implementations of this API to implement a cache? That seems like unnecessary burden on implementations, since I can imagine many implementations simply proxying DNS queries to some other service that may implement caching.

I was intending of adding the context function to note that not all implementations would have a cache. If you said "prime the cache with X" and the implementation had no cache, the call would return a new error, GETDNS_RETURN_NO_CACHE_TO_PRIME.

--Paul Hoffman

More information about the getdns-api mailing list