Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
adding a readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joewilliams committed Jan 10, 2009
1 parent 9e70852 commit 3673832
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README
@@ -0,0 +1,34 @@
merle : An erlang based memcached client.

Usage:

[user@host ebin]$ erl
Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.6.5 (abort with ^G)
1> merle:start_link("localhost", 11211).
{ok,<0.35.0>}
2> merle:memcache_set("123", "1", "0", "this is some data").
<<"STORED\r\n">>
ok
3> merle:memcache_get("123").
<<"VALUE 123 1 17\r\nthis is some data\r\nEND\r\n">>
ok

API:

start_link(Host, Port)

memcache_set(Key, Flag, ExpTime, Data)

memcache_add(Key, Flag, ExpTime, Data)

memcache_replace(Key, Flag, ExpTime, Data)

memcache_append(Key, Data)

memcache_prepend(Key, Data)

memcache_cas(Key, Flag, ExpTime, CasUniq, Data)

memcache_quit()

0 comments on commit 3673832

Please sign in to comment.