Lachim / redis

Automatically exported from code.google.com/p/redis
2 stars 0 forks source link

[FEATURE REQUEST] List insert multiple values at once #598

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In some applications, it would be nice to be able to "insert" multiple values 
in a list at once.

Without this functionality, lots of run-trips to the server must be performed 
thus increasing latency.

Use case:  populating a Redis cache with values from an external database.

Original issue reported on code.google.com by JeanLou....@gmail.com on 28 Jun 2011 at 10:47

GoogleCodeExporter commented 8 years ago
Redis 2.4 supports variadic L/RPUSH, SADD etc. 
In redis 2.2 or earlier you can do it with a pipeline on the client, and of 
course MSET for plain values, not lists.

Original comment by dvir...@gmail.com on 28 Jun 2011 at 11:12

GoogleCodeExporter commented 8 years ago
See this page for more information on pipelining: 
http://redis.io/topics/pipelining. Refer to the documentation of your client of 
choice on how to apply pipelining there.

Original comment by pcnoordh...@gmail.com on 28 Jun 2011 at 11:33