O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Hedis wraps up the Redis commands in a monad called RedisCtx m f. At first, this seems complicated, but it helps us to run Redis commands individually or together in a transaction. In the transactions, however, it is not possible to use the result value of the command, as the commands are queued. The hedis library wraps redis commands with the functions with same names (but lowercase).

All the commands work with ByteString. Any serialization should be done to and from the ByteString.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required