Skip to content

bukalapak/emcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"}

Releases

No releases published

Packages

No packages published

Languages