Redis HMSET 命令文档将其描述为:
“将指定字段设置为其存储在键的散列中的相应值。此命令将覆盖散列中的任何现有字段。如果键不存在,则会创建一个包含散列的新键。”我>
在这种情况下,“哈希”一词是什么意思?是哈希表的意思吗?或者,为给定的字段、值对计算哈希码?我想这意味着前者,即哈希表,但我仍然想澄清一下,因为文档并不明确?
最佳答案
哈希指的是Redis Hash Data-Type :
Redis Hashes are maps between string fields and string values, so they are the perfect data type to represent objects (e.g. A User with a number of fields like name, surname, age, and so forth)
关于hash - Redis HMSET 文档 : What does it mean by 'hash' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38212113/