rediscala icon indicating copy to clipboard operation
rediscala copied to clipboard

when update a hashs by redis.hset("rrr", "item5", "value3") will return false

Open TopSpoofer opened this issue 7 years ago • 2 comments

redis.hset("rrr", "item5", "value3") when first set it, return true but redis.hset("rrr", "item5", "value4") return false and the redis server was update the value to "value4"

TopSpoofer avatar Oct 27 '17 02:10 TopSpoofer

According to official redis-docs it returns 0 if field already exists and value was updated

rtenagom avatar Mar 16 '18 14:03 rtenagom

@rtenagom so, why not return ture? return 0 is successful in c and redis

TopSpoofer avatar Mar 18 '18 01:03 TopSpoofer