Redis-bitmap解读

122 阅读1分钟

1、相关命令

{"setbit",setbitCommand,4,"write use-memory @bitmap",0,NULL,1,1,1,0,0,0},
{"getbit",getbitCommand,3,"read-only fast @bitmap",0,NULL,1,1,1,0,0,0},
{"bitfield",bitfieldCommand,-2,"write use-memory @bitmap",0,NULL,1,1,1,0,0,0},
{"bitfield_ro",bitfieldroCommand,-2,"read-only fast @bitmap",0,NULL,1,1,1,0,0,0},
{"bitop",bitopCommand,-4,"write use-memory @bitmap",0,NULL,2,-1,1,0,0,0},
{"bitcount",bitcountCommand,-2,"read-only @bitmap",0,NULL,1,1,1,0,0,0},
{"bitpos",bitposCommand,-3,"read-only @bitmap",0,NULL,1,1,1,0,0,0},