Safe Haskell | None |
---|---|
Language | Haskell2010 |
A Cache
handler that operates in memory
Synopsis
- runCacheInMemory :: Member (Embed IO) r => Sem (CacheEff ': r) a -> Sem r a
- runCacheInMemory' :: Member (Embed IO) r => Int -> Sem (CacheEff ': r) a -> Sem r a
- runCacheInMemoryNoMsg :: Member (Embed IO) r => Sem (CacheEff ': r) a -> Sem r a
Documentation
runCacheInMemory :: Member (Embed IO) r => Sem (CacheEff ': r) a -> Sem r a Source #
Run the cache in memory with a default message cache size of 1000
runCacheInMemory' :: Member (Embed IO) r => Int -> Sem (CacheEff ': r) a -> Sem r a Source #
Run the cache in memory with a configurable message cache limit
runCacheInMemoryNoMsg :: Member (Embed IO) r => Sem (CacheEff ': r) a -> Sem r a Source #
Run the cache in memory with no messages being cached