From d381d9e12e982446f33dd25bccd8ce3700fc9591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Rodr=C3=ADguez=20Blanco?= Date: Tue, 3 May 2011 21:36:15 +0200 Subject: [PATCH] FUNCT Added setex and incr functionalities to nsync_string (no real functionality) --- src/nsync_string.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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. +