Package

purescript-redis-client

Repository
paluh/purescript-redis-client
License
BSD-3-Clause
Uploaded by
paluh
Published on
2018-05-15T15:42:14Z

Redis client library for PureScript. This library depends on the npm library ioredis. To use this library, you must manually install ioredis.

Patched ioredis behavior

For compatibility reasons with raw redis protocol this library mutates globaly response type of javascript hgetall method to:

Array { key ∷ ByteString, value ∷ ByteString }

If you provide better way to handle this (custom method) I would happily merge it...

Testing

Please run redis-server on port 43210 with clear redis database - test suite refuse to run if db is no empty.

Basic workflow can look like this:

redis-server --port 43210 &

and running tests with db cleanup can be done with:

echo flushdb | redis-cli -p 43210 | pulp test

Credits

This library started as a fork of TinkerTravel/purescript-redis which is not maintained any more.