calamity-0.1.12.0: A library for writing discord bots
Safe HaskellNone
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