Module

Database.Redis

Package
purescript-redis-client
Repository
paluh/purescript-redis-client

#Connection Source

#Config Source

type Config = { db :: Maybe Int, family :: IPFamily, host :: String, password :: Maybe String, port :: Int }

#defaultConfig Source

#Expire Source

data Expire

Constructors

#IPFamily Source

data IPFamily

Instances

#negInf Source

negInf :: ZscoreInterval Int

Use this to avoid type signatures

#Write Source

data Write

Constructors

#ZaddReturn Source

data ZaddReturn

Constructors

#ZscoreInterval Source

data ZscoreInterval i

Constructors

#hgetall Source

hgetall :: Connection -> ByteString -> Aff (Array { key :: ByteString, value :: ByteString })

#withConnection Source

withConnection :: forall a. Config -> (Connection -> Aff a) -> Aff a

#zadd Source

zadd :: forall i. Int53Value i => Connection -> ByteString -> Zadd -> NonEmpty Array (Zitem i) -> Aff Int

This API allows you to build only these combination of write modes and return values:

ZADD key CH score member [score member]
ZADD key score member [score member]
ZADD key XX CH score member [score member]
ZADD key NX score member [score member]

#zincrby Source

zincrby :: forall i. Int53Value i => Connection -> ByteString -> i -> ByteString -> Aff Int53

#zrangebyscore Source

zrangebyscore :: forall max min. Int53Value min => Int53Value max => Connection -> ByteString -> (ZscoreInterval min) -> (ZscoreInterval max) -> Maybe Zlimit -> Aff (Array (Zitem Int53))

#zremrangebyrank Source

#zremrangebyscore Source

zremrangebyscore :: forall max min. Int53Value min => Int53Value max => Connection -> ByteString -> (ZscoreInterval min) -> (ZscoreInterval max) -> Aff Int

#zrevrangebyscore Source

zrevrangebyscore :: forall max min. Int53Value min => Int53Value max => Connection -> ByteString -> (ZscoreInterval min) -> (ZscoreInterval max) -> Maybe Zlimit -> Aff (Array (Zitem Int53))