Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 797 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 797 Bytes

Elredis

TODO: Add description

Installation

If available in Hex, the package can be installed by adding elredis to your list of dependencies in mix.exs:

def deps do
  [
    {:elredis, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elredis.

Examples

Connecting to a Redis cluster

Elredis.start_link_cluster([
    {'127.0.0.1', 7000, 0, String.codepoints(""), 100, 5000}, 
    {'127.0.0.1', 7001, 0, String.codepoints(""), 100, 5000},
    {'127.0.0.1', 7002, 0, String.codepoints(""), 100, 5000}
])
{:ok, #PID<0.125.0>}