“This is the third day of my participation in the Gwen Challenge in November. Check out the details: The last Gwen Challenge in 2021.”

List types

  • List types are what we think of in JavaLinkedList
    • We can do it atHope primary schoolInsert six students in
    • You can also insert it directly on the right

  • analogyLinkedList, we can use commands such as
    • LPUSH/RPUSH/LINSERT
    • The performance of traversing a list in Redis also deteriorates as the index grows
    • Interval problems can be traversed by using start and stop intervals during traversal

Hash type (dictionaryhash)

  • One in the dictionarykeyCan store more than onevalue
    • Such as using thehset
    • If you havekeyFixed, deposit the samevalueThe internal will automatically do an unsuccessful insert and return changed0line

Set (set)

  • analogyhash.redisIn thesetsimilarjavaIn theHashSet
    • inredisUse the command insadd
    • forsetOne of the best applications is to remove functionality
    • When we repeatedly insertvalueWill automatically save this for usvalue, as shown in the figure below

Sorted set (sorted set)

  • The inside of the ordered set isJump tableimplemented
    • The main application is when we want to sort data
    • So is the inner thought of the skip table
    • As shown in the figure below

  • We have enumerated all five basic data structures
    • string(String)/list(list) /hash(zidian )/set/ (collection)zset(Ordered set)

    Basic data types are extremely important and will be introduced later along with other advanced features and some application scenarios 😊