diff --git a/src/nsync_string.erl b/src/nsync_string.erl index 5500da2..dba527b 100644 --- a/src/nsync_string.erl +++ b/src/nsync_string.erl @@ -24,10 +24,17 @@ -export([command_hooks/0, handle/3]). command_hooks() -> - ["set", "del"]. + ["set", "del", "setex", "incr"]. handle("set", [Key, Val], Tid) -> ets:insert(Tid, {Key, Val}); handle("del", [Key], Tid) -> ets:delete(Tid, Key). + +handle("setex", [_Key, _TTL, _Val], Tid) -> + ok; + +handle("incr", [_Key], Tid) -> + ok. +