Module
Database.Redis
- Package
- purescript-redis-client
- Repository
- paluh/purescript-redis-client
#Connection Source
data Connection :: Type
#negInf Source
negInf :: ZscoreInterval Int
Use this to avoid type signatures
#del Source
del :: forall eff. Connection -> Array ByteString -> Aff (redis :: REDIS | eff) Unit
#disconnect Source
disconnect :: forall eff. Connection -> Aff (redis :: REDIS | eff) Unit
#hget Source
hget :: forall eff. Connection -> ByteString -> ByteString -> Aff (redis :: REDIS | eff) (Maybe ByteString)
#hgetall Source
hgetall :: forall eff. Connection -> ByteString -> Aff (redis :: REDIS | eff) (Array { key :: ByteString, value :: ByteString })
#hset Source
hset :: forall eff. Connection -> ByteString -> ByteString -> ByteString -> Aff (redis :: REDIS | eff) Int
#get Source
get :: forall eff. Connection -> ByteString -> Aff (redis :: REDIS | eff) (Maybe ByteString)
#incr Source
incr :: forall eff. Connection -> ByteString -> Aff (redis :: REDIS | eff) Int
#keys Source
keys :: forall eff. Connection -> ByteString -> Aff (redis :: REDIS | eff) (Array ByteString)
#lpop Source
lpop :: forall eff. Connection -> ByteString -> Aff (redis :: REDIS | eff) (Maybe ByteString)
#lpush Source
lpush :: forall eff. Connection -> ByteString -> ByteString -> Aff (redis :: REDIS | eff) Int
#lrange Source
lrange :: forall eff. Connection -> ByteString -> Int -> Int -> Aff (redis :: REDIS | eff) (Array ByteString)
#mget Source
mget :: forall eff. Connection -> Array ByteString -> Aff (redis :: REDIS | eff) (Array ByteString)
#set Source
set :: forall eff. Connection -> ByteString -> ByteString -> Maybe Expire -> Maybe Write -> Aff (redis :: REDIS | eff) Unit
#withConnection Source
withConnection :: forall a eff. String -> (Connection -> Aff (redis :: REDIS | eff) a) -> Aff (redis :: REDIS | eff) a
#zadd Source
zadd :: forall i eff. Int53Value i => Connection -> ByteString -> Zadd -> Array (Zitem i) -> Aff (redis :: REDIS | eff) 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]
#zcard Source
zcard :: forall eff. Connection -> ByteString -> Aff (redis :: REDIS | eff) Int
#zrank Source
zrank :: forall eff. Connection -> ByteString -> ByteString -> Aff (redis :: REDIS | eff) (Maybe Int)
#zincrby Source
zincrby :: forall i eff. Int53Value i => Connection -> ByteString -> i -> ByteString -> Aff (redis :: REDIS | eff) Int53
#zrange Source
zrange :: forall eff. Connection -> ByteString -> Int -> Int -> Aff (redis :: REDIS | eff) (Array (Zitem Int53))
#zrangebyscore Source
zrangebyscore :: forall min max eff. Int53Value min => Int53Value max => Connection -> ByteString -> (ZscoreInterval min) -> (ZscoreInterval max) -> Maybe Zlimit -> Aff (redis :: REDIS | eff) (Array (Zitem Int53))
#zrem Source
zrem :: forall eff. Connection -> ByteString -> Array ByteString -> Aff (redis :: REDIS | eff) Int
#zremrangebylex Source
zremrangebylex :: forall eff. Connection -> ByteString -> ByteString -> ByteString -> Aff (redis :: REDIS | eff) Int
#zremrangebyrank Source
zremrangebyrank :: forall eff. Connection -> ByteString -> Int -> Int -> Aff (redis :: REDIS | eff) Int
#zremrangebyscore Source
zremrangebyscore :: forall min max eff. Int53Value min => Int53Value max => Connection -> ByteString -> (ZscoreInterval min) -> (ZscoreInterval max) -> Aff (redis :: REDIS | eff) Int
- Modules
- Database.
Redis