|
SetCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
► Sign in to add a comment
|
Search
|
|
SetCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
It would be nice if an expire could be passed with set. This would reduce protocol overheard drastically.
I second the expire being passed with set feature request.
Yes the optional EXPIRE argument is useful. Btw for Redis Git there is a solution:
I benchmarked antirez solution as I came up with it myself.
With a server with "appendfsync always", and a simple PHP script using the Predis library.
I get similar results if I change the fsync options.
I suspect the transaction approach is slower because it has additional overheads, for example, maintaining a transaction log. So I would also like set to have a expire argument.
@brampton, did you try with pipelining? I get these results using the Ruby client: