In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
| A list can contain one or more items (item), and each item is sorted according to where they are pushed to the list. # the location of each list item determines the index value of this item (index). The index starts with 0 and increases sequentially from the leftmost end of the column to the right end of the list. The index of the item at the leftmost end of the list is 0, while the index of the item at the far right end of the list is NMAE 1, where N is the length of the list. The items contained in the # list can be duplicated, and they do not have to be unique. | push and pop operations-push values lpush key value [value...] # from the left end of the list. Push one or more values to the left end of the list. The command returns the number of items currently contained in the list after the new values are pushed. -- push multiple values from the left end of the list lpush key value1 value2 value3-- push the value rpush key value [value...] from the right end of the list push multiple values rpush key value1 value2 value3...-- from both ends of the list remove the pop-up item lpop key and return the leftmost item rpop key remove the item at the far right end of the list and return the item at the right end of the list | length Index and range operations-get the length of the list llen key # return the length of the list key key, return the number of list items contained in the list-return items on a given index lindex key index # return list items on a specified index index, index can be positive or negative-return all items in a given index range lrange key start stop # return list key key All list items in the range from index start to index stop. Both index parameters can be positive or negative. | insert and delete operations-set list items on the specified index lset key index value # set the list items on the list key key index index to value, and the command returns OK if the setting is successful. If the index parameter exceeds the index range of the list, the name command returns an error. Insert the list item linsert key before/after pivot value at the specified location whether the before option or the after option is passed when the command is called, inserting the value value before or after the specified list item pivot, and doing nothing when the pivot does not exist in the list key. # returning-1 means that pivot does not exist; returning 0 means that the key key does not exist; if the insertion is successful, the current length of the list is returned. -- remove the specified value lrem key count value according to the value of the parameter count, remove the list item equal to the parameter value in the list: ① count > 0, and delete the list item ② count with the value value from the header
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.