digitalbazaar / did-io

Decentralized identifier management library for browser and node.js
Other
43 stars 8 forks source link

Consider cache auto-updater #61

Open dlongley opened 2 years ago

dlongley commented 2 years ago

Since fetching some DID docs can be a slow process, we may want to engineer something to keep caches warm independently of resolution requests. What this means is that -- we could schedule a timer to check for cache entries that are close to expiring, and we could re-resolve them in a background process. This would help reduce wait times when popular values have expired from the cache and just need to be refreshed.