Redis · Concept
Bitmap
Redis bitmaps use string values as compact sequences of bits. Set or read individual positions, count enabled bits, and combine bitmap keys with BITOP.
Last updated
- Since
- 8.2
Syntax
SETBIT key offset value
GETBIT key offset
BITCOUNT key [start end [BYTE | BIT]]
BITOP operation destkey key [key ...]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SETBITGETBITBITCOUNTBITOPANDORXORNOT