简体   繁体   中英

Why Redis 'Zset' means 'Sorted Set'?

When I was studying Redis for my database, I learned that 'Zset' means 'Sorted Set'. What does 'Zset' actually stand for? 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

Hello. Z is as in XYZ, so the idea is, sets with another dimension: the order. It's a far association... I know:)

  • Set commands start with s
  • Hash commands start with h
  • List commands start with l
  • Sorted set commands start with z
  • Stream commands start with x
  • Hyperloglog commands start with pf

Sorted sets could have been named sset, but it's unpronouncable, as well as ss has a bad connotation in Europe. So, maybe due to this, or just for fun they have chosen the zset name.

The essence of the given name Zset stands for seriousness, thought, intuition, intent and wisdom.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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