{"repo":"Ericsson/ered","free":true,"listed":false,"github":"https://github.com/Ericsson/ered","clone":"git clone https://github.com/Ericsson/ered.git","description":"An Erlang client for Valkey/Redis","language":"Erlang","stars":26,"topics":["redis","valkey"],"license":"MIT","category":"databases-storage","readme_excerpt":"ered ==== An Erlang client for connecting to Valkey clusters and standalone instances. This projects is aiming to replace eredis and eredis cluster. It also works for open source versions of Redis, tested up to version 7.2. Status: Beta. The API is not stable. Features: status events queuing and load shedding (to handle burst traffic) automatic pipelining of commands - a single instance can be used simultaneously by multiple Erlang processes using only one connection to each database node RESP3 support cluster and standalone mode Usage by example ---------------- Overview -------- There is an API for a single server (standalone mode) provided by the ered module, and an API for cluster mode provided by the ered cluster module. The pid returned by the connect functions can be registered with a name and used by multiple processes in parallel. The commands are multiplexed over the same connections automatically. A command() is a list of the command name and arguments as binaries. A batch of pipelined commands can be provided as a list of lists of binaries and then the returned reply value is a list of reply values. A reply() is {ok, Value} {error, any()} where Value is a nested structure on the format described under Valkey to Erlang Term Representation. For exact types, see the source code. Standalone mode API ------------------- The ered module is the client API to a single server instance. ered:connect/3 Connects to a single node. The process is supervised by the ered applicat","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ericsson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ericsson/ered/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}