Safe Haskell | None |
---|
Quick conduit for reading from Redis lists. Not tested much, and probably quite slow.
- redisSource :: MonadResource m => HostName -> Int -> ByteString -> Int -> Source m [ByteString]
- redisSink :: MonadResource m => HostName -> Int -> ByteString -> Sink ByteString m ()
Documentation
:: MonadResource m | |
=> HostName | Hostname of the Redis server |
-> Int | Port of the Redis server (usually 6379) |
-> ByteString | Name of the list |
-> Int | Number of elements to pop at once |
-> Source m [ByteString] |
:: MonadResource m | |
=> HostName | Hostname of the Redis server |
-> Int | Port of the Redis server (usually 6379) |
-> ByteString | Name of the list |
-> Sink ByteString m () |
Warning, this outputs strings when things go wrong!