Permalink
Browse files

updating readme

  • Loading branch information...
1 parent bbb9a87 commit 9da27868db6cb1c7b0375374f15545722fff9f25 Jacob Vorreuter committed Jun 2, 2009
Showing with 20 additions and 5 deletions.
  1. +12 −4 README.markdown
  2. +8 −1 src/mcerlang.erl
View
@@ -19,16 +19,24 @@ Binary Protocol Spec <http://code.google.com/p/memcached/wiki/MemcacheBinaryProt
$> make
$> make test
$> sudo make install
+ $> memcached -d -m 1024 -p 11211 -l localhost
+ $> memcached -d -m 1024 -p 11121 -l localhost
- 1> mcerlang:start_link([{"localhost", 11211, 1}]).
+ 1> mcerlang:start_link([{"localhost", 11211, 1}, {"localhost", 11121, 1}]).
{ok,<0.37.0>}
2> mcerlang:stats().
[{{"localhost",11211},
[{evictions,"0"},
- {total_items,"30"},
- {curr_items,"4"},
- {bytes,"257"},
+ {total_items,"0"},
+ {curr_items,"0"},
+ {bytes,"0"},
+ {...}|...]},
+ {{"localhost",11121},
+ [{evictions,"0"},
+ {total_items,"0"},
+ {curr_items,"0"},
+ {bytes,"0"},
{...}|...]}]
3> mcerlang:set(hello, <<"World">>).
View
@@ -35,7 +35,8 @@
%% api callbacks
-export([get/1, get_many/1, add/2, add/3, set/2, set/3,
replace/2, replace/3, delete/1, increment/4, decrement/4,
- append/2, prepend/2, stats/0, flush/1, quit/0, version/0]).
+ append/2, prepend/2, stats/0, flush/1, quit/0, version/0,
+ continuum/0]).
-export([find_next_largest/2]).
@@ -104,6 +105,9 @@ quit() ->
version() ->
gen_server:call(?MODULE, version).
+continuum() ->
+ gen_server:call(?MODULE, continuum).
+
%%====================================================================
%% gen_server callbacks
%%====================================================================
@@ -250,6 +254,9 @@ handle_call(version, _From, State) ->
Reply = send_all(State, #request{op_code=?OP_Version}),
{reply, Reply, State};
+handle_call(continuum, _From, State) ->
+ {reply, State#state.continuum, State};
+
handle_call(_, _From, State) -> {reply, {error, invalid_call}, State}.
%%--------------------------------------------------------------------

0 comments on commit 9da2786

Please sign in to comment.