http://redis.io/commands/set supports options like XX. Is it possible to use them? I tried
client.set(key, value, "PX expiry", function (err) {});
client.set(key, value, {PX: expiry}, function (err) {});
which does not work.
It does indeed work! :smile_cat:
Set "foo" to "bar" expiring in 10 seconds, but only if key "foo" already exists:
r.set("foo", "bar", "EX", 10, "XX")
That's even quiet obvious... :D thanks!
Could this be clarified with regards to expiry (like http://redis.io/commands/expire) in the documentation for node_redis?
Most helpful comment
Could this be clarified with regards to expiry (like http://redis.io/commands/expire) in the documentation for node_redis?