Redis HMSET 文档:'hash' 是什么意思?
Redis HMSET Documentation: What does it mean by 'hash'?
Redis HMSET 命令文档将其描述为:
"Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created."
'hash' 这个词在这种情况下是什么意思?它是否意味着哈希 table?或者,为给定的字段、值对计算哈希码?我想这意味着前者,即哈希 table,但我仍然想澄清一下,因为文档不明确?
哈希指的是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)
Redis HMSET 命令文档将其描述为:
"Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created."
'hash' 这个词在这种情况下是什么意思?它是否意味着哈希 table?或者,为给定的字段、值对计算哈希码?我想这意味着前者,即哈希 table,但我仍然想澄清一下,因为文档不明确?
哈希指的是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)