shared-resource-cache
A cache designed for guaranteeing that different threads can share the same reference to a resource. For example, it allows threads to communicate via a shared TChan broadcast channel. Using resourcet, items are only removed from the cache after no sharers are holding the resource and the item has expired (according to the expiry configuration the cache was constructed with.) Note: an MVar is used to coordinate between threads that only one thread does the initial load of the resource with the given IO action if multiple threads try and retrieve a resource that is not yet cached at the same time.
hackage.haskell.org
0.2.0.3
1 day ago
8
27 total
happy0
3 packages10,775 downloads
Links
| Registry | hackage.haskell.org |
| Source | Repository |
| Homepage | Homepage |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:hackage/shared-resource-cache
spec |
| License | MIT |
| First Release | 18 days ago |
| Last Synced | about 15 hours ago |
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |