AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.44k stars 247 forks source link

You can update GO's dependency cache. I see that the official update is not happening, but other secondary development cache works well too. #265

Closed Potterli20 closed 2 years ago

Potterli20 commented 2 years ago

For example, go cache of zgo.at/zcache.

Just because it seems to me that the cache is not as good as the original GO cache. Emmm watch yours.

Maybe this needs to be added as well.

ainar-g commented 2 years ago

zgo.at/zcache

In the README:

How can I limit the size of the cache? Is there an option for this?

Not really; zcache is intended as a thread-safe map with time-based eviction. This keeps it nice and simple. […]

Meanwhile, limiting the byte size of the cache is important to both dnsproxy and AdGuard Home.

Potterli20 commented 2 years ago

zgo.at/zcache

In the README:

How can I limit the size of the cache? Is there an option for this?

Not really; zcache is intended as a thread-safe map with time-based eviction. This keeps it nice and simple. […]

Meanwhile, limiting the byte size of the cache is important to both dnsproxy and AdGuard Home.

There are also many go caches, such as Freecache and so on. I also know the importance of ADH caching. Maybe the caching step needs to be enhanced