# Memcachir
[![Build Status](https://secure.travis-ci.org/peillis/memcachir.png)](http://travis-ci.org/peillis/memcachir)
Memcached client for Elixir
## Installation
```elixir
defp deps() do
...
{:memcachir, "~> 0.1.0"},
...
end
defp application() do
[applications: [:logger, :memcachir, ...]]
end
```
```elixir
config :memcachir,
hostname: "localhost"
```
## Configuration
Complete configuration options with default values:
```elixir
config :memcachir,
# connection options
hostname: "localhost",
port: 11211,
backoff_initial: 500,
backoff_max: 30_000,
# memcached options
ttl: 0,
namespace: nil,
coder: {Memcachir.Coder.Raw, []},
# connection pool options
strategy: :lifo,
size: 10,
max_overflow: 10
```
## Example
```elixir
iex> Memcachir.set("hello", "world")
{:ok}
iex> Memcachir.get("hello")
{:ok, "world"}
```
See test folder for further examples.