bitcount
BITCOUNT
 
Redis Developer Course
 | 
 
Redis Technical Support
 | 
 
Redis Enterprise Server
 | 
|---|
1인 BIT 수를 센다
사용법은 bitcount key start end 이다.
start와 end는 byte 순서이고, 0부터 시작한다.
start나 end에 음수를 사용할 수 있다. 이 경우 마지막 바이트가 -1, 그 다음이 -2 이렇게 부여된다.
명령문
BITCOUNT key [start end]
- 이 명령은 version 2.6.0 부터 사용할 수 있다.
 - 논리적 처리 소요시간은 O(N)입니다.
 
| 관련 명령 | SETBIT, GETBIT, BITOP, BITPOS | 
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis | 
| << BITOP | BITCOUNT | BITFIELD >> | 
|---|
	Email
	
	
	답글이 올라오면 이메일로 알려드리겠습니다.
	
 
