XDELS

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Subquery feature

You can use a subquery in the value part to delete entries.

Commands allowed as a subquery:

  • XDELS key (GET key1)
  • XDELS key (LPOP mylist)
  • XDELS key (RPOP mylist)
  • XDELS key (LINDEX mylist 3)
  • XDELS key (HGET myhash field)

Example

Command>xdels sensor-1234 (lindex mylist 3)
Result>OK
Available since Enterprise version 7.2.5.

Syntax

XDELS key ID (subquery)

  • Available since Enterprise version 7.2.5.
  • Time complexity depends on the subquery.
  • Returns the number of deleted IDs.

<< XDEL XDELS XTRIM >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.