proxy.golang.org : github.com/mccutchen/fillcache
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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/mccutchen/fillcache
Keywords:
cache
, go
, golang
, singleflight
License: MIT
Latest release: over 1 year ago
First release: about 6 years ago
Namespace: github.com/mccutchen
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 16 days ago