Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data CacheConfig Source #
CacheConfig | |
|
Instances
data CacheMetrics Source #
data CacheError Source #
Instances
newCacheMetrics :: MonadIO m => Store -> m CacheMetrics Source #
withCache :: StoreReadBase m => Maybe CacheConfig -> CacheT m a -> m a Source #
connectRedis :: MonadIO m => String -> m Connection Source #
blockRefScore :: BlockRef -> Double Source #
scoreBlockRef :: Double -> BlockRef Source #
type CacheWriter = Mailbox CacheWriterMessage Source #
type CacheWriterInbox = Inbox CacheWriterMessage Source #
cacheNewBlock :: MonadIO m => CacheWriter -> m () Source #
cacheWriter :: (MonadUnliftIO m, MonadLoggerIO m, StoreReadExtra m) => CacheConfig -> CacheWriterInbox -> m () Source #
cacheDelXPubs :: (MonadUnliftIO m, MonadLoggerIO m, StoreReadBase m) => [XPubSpec] -> CacheT m Integer Source #