亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - How to save unread chat messages using redis, and how to do it more reasonably.
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-06-21 10:11:46
0
1
1493

How to save unread chat messages using redis. I used to use lpush to save. keys is the ID of the person who has not read the message, and vlaue is the object. All unread messages sent to this person are saved in this collection. There is a flaw. After reading the unread messages, I want to delete the read messages. Other people's chats are also deleted. Now I want to improve it, but I don't know what way to solve it. Thanks for informing.

PHP中文網(wǎng)
PHP中文網(wǎng)

認證0級講師

reply all(1)
黃舟

I am used to using zset to store messages, because not only one person sends messages to him, but the recipient is also likely to click on the messages in random order

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