calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Cache.InMemory

Description

A Cache handler that operates in memory

Synopsis

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