Lua bit manipulation

       When using redis to write the ranking list, the situation of the same points should be sorted according to the arrival time, and the position operation of Lua is used. There is very little information in this area on the Internet. Write a simple note.

       Lua bit operation is actually the same as C language, the example is as follows:

      

      The result is:

     

 

    For practical applications, please see another blog of mine, "How to use the arrival time to sort when using redis to do the same score in the ranking"

Guess you like

Origin blog.csdn.net/banfushen007/article/details/107189143
Bit
BIT