我想在tarantool中使用位数组。我需要类似redis的操作:setbit,getbit和bitcount。 tarantool中有可能吗?
答案 0 :(得分:0)
使用内置模块bit:
tarantool> bit
---
- rol: 'function: builtin#70'
rshift: 'function: builtin#68'
ror: 'function: builtin#71'
bswap: 'function: builtin#66'
bxor: 'function: builtin#74'
bor: 'function: builtin#73'
arshift: 'function: builtin#69'
bnot: 'function: builtin#65'
tobit: 'function: builtin#64'
lshift: 'function: builtin#67'
tohex: 'function: builtin#75'
band: 'function: builtin#72'
...