Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Module supporting the dogpile protection of a service, see http://en.wikipedia.org/wiki/Cache_stampede.
Synopsis
- dogpileProtect :: (Eq a, Hashable a) => BasicService IO a b -> IO (BasicService IO a b)
Documentation
:: (Eq a, Hashable a) | |
=> BasicService IO a b | The service to protect. |
-> IO (BasicService IO a b) |
Dogpile protection of a service, to prevent multiple calls for the same value being submitted. | Loses the values held within m.