etaty / rediscala

Non-blocking, Reactive Redis driver for Scala (with Sentinel support)
Apache License 2.0
790 stars 142 forks source link

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

Open TopSpoofer opened 6 years ago

TopSpoofer commented 6 years ago

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"

rtenagom commented 6 years ago

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

TopSpoofer commented 6 years ago

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