db: Use mutex around cache
Created by: ryanslade
This ensures that when the cache has expired, only one goroutine will refresh it while others will block until the it has refreshed.
Created by: ryanslade
This ensures that when the cache has expired, only one goroutine will refresh it while others will block until the it has refreshed.