Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data CacheConfig Source #
Instances
data CacheMetrics Source #
data CacheError Source #
Instances
newCacheMetrics :: MonadLoggerIO m => Stats -> Connection -> DatabaseReader -> m CacheMetrics 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 #
cacheNewTx :: MonadIO m => TxHash -> CacheWriter -> m () Source #
cacheSyncMempool :: MonadIO m => CacheWriter -> m () Source #
cacheWriter :: (MonadUnliftIO m, MonadLoggerIO m, StoreReadExtra m) => CacheConfig -> CacheWriterInbox -> m () Source #
cacheDelXPubs :: forall (m :: Type -> Type). (MonadLoggerIO m, StoreReadBase m) => [XPubSpec] -> CacheT m Integer Source #