diff options
author | Araq <rumpf_a@web.de> | 2011-05-14 21:41:59 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-05-14 21:41:59 +0200 |
commit | c9aac521a00bc59bb16538de316579203c2a2dfb (patch) | |
tree | d8320aed4a6364cf5cd91f3cb31e35214f9865a6 /lib/pure/redis.nim | |
parent | 196c0dd5d3889c5616c7f251364e051431e614e1 (diff) | |
parent | 4fd42d5150fa97d934d782f43433dd2ca2a49b3f (diff) | |
download | Nim-c9aac521a00bc59bb16538de316579203c2a2dfb.tar.gz |
Merge branch 'master' of git@github.com:Araq/Nimrod
Diffstat (limited to 'lib/pure/redis.nim')
-rw-r--r-- | lib/pure/redis.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/redis.nim b/lib/pure/redis.nim index 1d25f1a5d..e91fdc832 100644 --- a/lib/pure/redis.nim +++ b/lib/pure/redis.nim @@ -338,15 +338,15 @@ proc hMSet*(r: TRedis, key: string, r.sendCommand("HMSET", args) raiseNoOK(r.parseStatus()) -proc hSet*(r: TRedis, key, field, value: string) = +proc hSet*(r: TRedis, key, field, value: string): TRedisInteger = ## Set the string value of a hash field r.sendCommand("HSET", key, field, value) - raiseNoOK(r.parseStatus()) + return r.parseInteger() -proc hSetNX*(r: TRedis, key, field, value: string) = +proc hSetNX*(r: TRedis, key, field, value: string): TRedisInteger = ## Set the value of a hash field, only if the field does **not** exist r.sendCommand("HSETNX", key, field, value) - raiseNoOK(r.parseStatus()) + return r.parseInteger() proc hVals*(r: TRedis, key: string): TRedisList = ## Get all the values in a hash |