github.com/mccutchen/fillcache (go): Package fillcache is an in-process cache with single-flight filling semantics.  In short: Given a function that computes the value a cache key, it will ensure that the function is called only once per key no matter how many concurrent cache gets are issued for a key.  Example demonstrates basic usage of fillcache by simulating a "thundering herd" of 10 concurrent cache gets that result in only a single call to the cache filling function.
Keywords: cache|go|golang|singleflight