package redis-lwt

  1. Overview
  2. Docs
Redis client (lwt interface)

Install

Dune Dependency

Authors

Maintainers

Sources

redis-0.7.1.tbz
sha256=0ef71f6c47d5c1ab16b2371d93c38a4d53bdf71e1e795308a3b721281dab940a
sha512=a794de56c4c42d812259a0cb11516ddc562ae0a3f705fa3058a61a409864c18cb3f84d686ec5a156816b918c19820389801c3d0214b022fe1335049edb4d7d04

CHANGES.md.html

Changelog

0.7.1

fix: remove debug message in pool

0.7

  • add ability to connect to redis via unix sockets (Albert Peschar)

  • add a connection pool implementation

  • bugfix: fix out of order arguments caused by excessive concurrency in redis-lwt (Khady)

0.6

  • feat: exposed send_custom_request in the client

  • add lmove and blmove

  • Add support for OCaml 5.0

  • Add bzpopmin, bzpopmax

  • Add zpopmin, zpopmax

0.5

  • add xadd, xlen, xdel, xrange, xrevrange, xtrim, xread

  • add connection_spec constructor with default port

  • require ocaml 4.03 at least

  • Add support for authenticating with ACL (thanks Steven Anderson)

maintenance:

  • move to ounit2 for tests

  • add github actions for CI and doc generation, remove travis

0.4

  • feat: also have >|= in IO; in Cache, atomic set+expire

  • fix(api): export type of cache

  • add printer for reply

  • migrate opam files to 2.0

  • migration to dune

  • fix: redis-lwt: pass fd type

  • add some benchmarks and integration tests

  • update doc generation, fix errors for odoc

  • reindent, style, etc.

0.3.7

  • Add EXPIRE to mass insert command set (thanks Malthe Borch)

  • Various fixes (thanks Kate and Varun Kohli)

0.3.6

  • Fix to work with safe-string flag/compilers (thanks Jacques-Pascal Deplaix)

0.3.5

0.3.4

  • Port to jbuilder (thanks Rudi Grinberg)

  • Drop support of ocaml-4.01 (due to port to jbuilder) and run CI against ocaml-4.04

  • Force read_reply to be atomic (thanks Jams Long)

  • Pass hints to getaddrinfo (thanks Doğan Çeçen)

0.3.3

  • Fix fd leak for Redis_lwt.Client.with_connection, thanks @domsj

  • Fix socket leak on connection failure, thanks @ahrefs

0.3.2

Fixed EX/PX bug with SET (see issue #34, thanks @briancaine).

Introduce string and float bound type.

Following commands were added or fixed (due to bound type introduction):

  • ZRANGEBYSCORE

  • ZRANGEBYLEX

  • ZREVRANGEBYSCORE

  • ZREVRANGEBYLEX

  • ZREMRANGEBYLEX

  • ZREMRANGEBYSCORE

  • ZREMRANGEBYRANK

  • ZCARD

  • ZCOUNT

  • ZLEXCOUNT

  • ZRANK

  • ZREVRANK

0.3.1

Expose stream type for both lwt and sync backends (see issue #32, thanks @acs1)

0.3.0

Now package contains 3 modules: Redis, Redis_lwt and Redis_sync.

  • Redis - Client/Cache/Mutex modules type signatures

  • Redis_sync - synchronous implementation of client library

  • Redis_lwt - Lwt-based implementation of client library

Commands implementations:

  • A few improvements to the sorted set operations, thanks @domsj

  • Add PFADD/PFCOUNT/PFMERGE

  • Add HSCAN/HSTRLEN/HINCRBYFLOAT commands

  • Add MIGRATE command

  • Add PSETEX and OBJECT command

  • Add PUNSUBSCRIBE/PSUBSCRIBE commands, thanks @j0sh.

  • Add MSET/MSETNX/MGET commands

  • Add ZSCORE, thanks @ipfix

  • Fail explicitly when PING command was failed

Testing changes:

  • Rework all test cases due IO module usage, thanks @rgrinberg

  • Fix test exit code to return non-zero code on failure

Infrastructure changes:

  • String.create -> Bytes.create to silence warning on recent OCaml versions

  • Require OCaml version to be >= 4.01.0, thanks @hcarty

  • Replace Lwt_chan use with Lwt_io

  • Properly resolve string hostnames, e.g. localhost, google.com etc.., thanks @toots