Does redis 3.0 still supports mset function

68 views
Skip to first unread message

hadoop_admin

unread,
Jul 5, 2015, 11:49:13 AM7/5/15
to redis-db
Hi, Does redis 3.0 still supports mset function like redis 2.0.x ? I want to insert many key value datas into redis 3.0 cluster by batch.

Josiah Carlson

unread,
Jul 5, 2015, 12:46:37 PM7/5/15
to redi...@googlegroups.com
Redis 3.0 with and without cluster mode enabled does support MSET. In cluster mode, you need to ensure that all keys in your MSET call are on the same node, otherwise the cluster server will report an error and no keys will be set.

 - Josiah

On Sun, Jul 5, 2015 at 6:56 AM, hadoop_admin <hadoop...@163.com> wrote:
Hi, Does redis 3.0 still supports mset function like redis 2.0.x ? I want to insert many key value datas into redis 3.0 cluster by batch.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Mark Paluch

unread,
Jul 6, 2015, 4:43:55 AM7/6/15
to redi...@googlegroups.com
To be more precise on MSET/MGET with cluster: All keys within MSET/MGET must share the same hash slot, otherwise Redis responds: (error) CROSSSLOT Keys in request don't hash to the same slot
The same slot rule applies to all commands that operate on multiple keys.

hadoop_admin

unread,
Jul 6, 2015, 4:49:53 AM7/6/15
to redis-db
thanks for replying.

发件人:Mark Paluch <mpa...@paluch.biz>
发送时间:2015-07-06 16:43
主题:Re: [redis-db] Does redis 3.0 still supports mset function
收件人:"redis-db"<redi...@googlegroups.com>
抄送:
Reply all
Reply to author
Forward
0 new messages