node.js - redis可以两个key对应一个value吗?
怪我咯
怪我咯 2017-04-17 15:49:53
0
3
457

在node中使用redis,可以有这样的存储吗,redis.set('key1','key2',value) ,这样对一个value修改的时候,两个key1、key2就都修改完了?不用分两次修改

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
Ty80

You can use the pipeline supported by redis and submit it as a request.

洪涛

It is better to save twice.

大家讲道理

Since you want two keys to reference one memory address, why not just use one key

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template