Run one node with:
iex --sname e1 -S mix
And the other with:
iex --sname e2 -S mix
then on first node execute:
MultiNodeMem.Cache.set(:a, 12)
MultiNodeMem.Cache.get(:a)
If available in Hex, the package can be installed
by adding multi_node_mem
to your list of dependencies in mix.exs
:
def deps do
[{:multi_node_mem, "~> 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/multi_node_mem.