简体   繁体   English

为什么 Redis 'Zset' 的意思是 'Sorted Set'?

[英]Why Redis 'Zset' means 'Sorted Set'?

When I was studying Redis for my database, I learned that 'Zset' means 'Sorted Set'.当我为我的数据库研究 Redis 时,我了解到“Zset”的意思是“Sorted Set”。 What does 'Zset' actually stand for? “Zset”实际上代表什么? I couldn't figure out why it also means 'Sorted Set'.我不明白为什么它也意味着“排序集”。

It could be simple or too broad question, but I want to understand exactly what I learned.这可能是一个简单或过于宽泛的问题,但我想准确地理解我学到的东西。

A similar question is asked before on Redis's github page and the creator of Redis answered it Redis 的 github 页面之前问过类似的问题,Redis 的创建者回答了它

Hello.你好。 Z is as in XYZ, so the idea is, sets with another dimension: the order. Z就像在 XYZ 中一样,所以这个想法是,设置另一个维度:顺序。 It's a far association... I know:)这是一个遥远的协会......我知道:)

  • Set commands start with s设置命令以s开头
  • Hash commands start with h Hash 命令以h开头
  • List commands start with l列出以l开头的命令
  • Sorted set commands start with z排序集命令以z开头
  • Stream commands start with x Stream 命令以x开头
  • Hyperloglog commands start with pf Hyperloglog 命令以pf开头

Sorted sets could have been named sset, but it's unpronouncable, as well as ss has a bad connotation in Europe. Sorted Sets 可以命名为 sset,但它不能发音,而且 ss 在欧洲有不好的含义。 So, maybe due to this, or just for fun they have chosen the zset name.所以,也许是因为这个,或者只是为了好玩,他们选择了zset名称。

The essence of the given name Zset stands for seriousness, thought, intuition, intent and wisdom. Zset这个名字的本质代表着严肃、思想、直觉、意图和智慧。

So, it is highly probable that the chosen name has little to do with technology and more with culture.因此,很可能选择的名称与技术无关,而与文化有关。 This is what I can work out from the sources available, but this is only probably true.这是我可以从可用资源中得出的结论,但这很可能是真的。 If you need factual precision, then you might want to send a message to the authors, asking them.如果您需要事实的准确性,那么您可能想向作者发送消息,询问他们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM