Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Random Replacement cache. The seed is fixed to an StdGen
since its both
easily accessible & good enough for this purpose. Random replacement means exactly what it
sounds like: when the cache fills up a random element is selected and evicted.
newRR :: StdGen -> Int -> RR k Source #
Generate a new Random Replacement cache using the provided seed & size.
rrSizeDebug :: RR k -> Int Source #