/emcd

Text Protocol Elixir Memcached Client

Primary LanguageElixir

Emcd

Emcd is Memcached Client written using Elixir. Emcd uses text protocol instead of binary protocol.

Installation

Add Emcd to your mix.exs dependencies:

def deps do
  [{:emcd, "~> 0.1.0", github: "bukalapak/emcd"}]
end

Add :emcd to your :applications list if you wish the application to start automatically.

Configuration

Complete configuration options with default values:

config :emcd,
  host: "127.0.0.1",
  port: 3000,
  timeout: 5000,
  namespace: nil

Usage

iex> Emcd.start([], []) # if :emcd not started automatically.
{:ok, #Port<0.3561>}
iex> Emcd.set("key", "value")
{:ok, "STORED"}
iex> Emcd.get("key")
{:ok, "value"}