Enterprise Sets


엔터프라이즈 셋

셋(Set)에서 사용 가능한 서브쿼리와 확장된 기능을 설명합니다.

SADD   서브쿼리

  • sadd myset (get key)
  • sadd myset (mget key1 key2)
  • sadd myset (lpop/rpop mylist)
  • sadd myset (lrange mylist 0 -1)
  • sadd myset (smembers myset)
  • sadd myset (sunion/sinter/sdiff myset2 myset3)
  • sadd myset (zrange/zrevrange myzset 0 -1)
  • sadd myset (hget myhash field)
  • sadd myset (hmget myhash field1 field2)
  • sadd myset (hkeys/hvals myhash)
  • sadd myset (hgetall myhash)
  • sadd myset (lrange myset2 0 -1)  (sunion myset2 myset3)  value2: 여러 개 subquery, value 사용할 수 있습니다.

SMEMBERS   SORT(ASC/DESC) 기능

  • smembers myset sort
  • smembers myset asc
  • smembers myset desc

SUNION   SORT(ASC/DESC) 기능

  • sunion myset1 myset2 sort
  • sunion myset1 myset2 asc
  • sunion myset1 myset2 desc

SINTER   SORT(ASC/DESC) 기능

  • sinter myset1 myset2 sort
  • sinter myset1 myset2 asc
  • sinter myset1 myset2 desc

SDIFF   SORT(ASC/DESC) 기능

  • sdiff myset1 myset2 sort
  • sdiff myset1 myset2 asc
  • sdiff myset1 myset2 desc

질문하거나 댓글을 보려면 클릭하세요.  댓글수 :    조회수 :

Email 返事がかかってなれば、メールでお知らせします。