zrem
ZREM
|  Redis Developer Course |  Redis Technical Support |  Redis Enterprise Server | 
|---|
member 삭제
사용법은 zrem key member 이다.
member를 여러개 지정할 수 있다.
Example
| 명령> | zadd mycom 2009 "Sun microsystems" 1992 Wang 2002 Netscape | 
| 결과> | 3 | 
| 명령> | zadd mycom 1998 "Digital Equipment" 2005 K-mart 1987 "American motors" | 
| 결과> | 3 | 
| 명령> | zrange mycom 0 -1 withscores | 
| 결과> | 0) 1987 -> American motors 1) 1992 -> Wang 2) 1998 -> Digital Equipment 3) 2002 -> Netscape 4) 2005 -> K-mart 5) 2009 -> Sun microsystems | 
| 명령> | zrem mycom "American motors" "Wang" "Digital Equipment" | 
| 결과> | 3 | 
| 명령> | zrange mycom 0 -1 withscores | 
| 결과> | 0) 2002 -> Netscape 1) 2005 -> K-mart 2) 2009 -> Sun microsystems | 
명령문
ZREM key member [member]
- 이 명령은 version 1.2.0 부터 사용할 수 있다.
- 논리적 처리 소요시간은 O(M*log(N))이다. N은 집합에 속한 member 개수이고, M은 삭제될 member 개수이다.
- version 2.4 이후 부터 member를 여러개 지정할 수 있다.
| 관련 명령 | ZREMRANGEBYSCORE, ZREMRANGEBYLEX, ZREMRANGEBYRANK, SREM, HDEL | 
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis | 
| << ZMSCORE | ZREM | ZRM >> | 
|---|
	Email
	
	
	답글이 올라오면 이메일로 알려드리겠습니다.
	
 


 
  
			 
			