You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conditionally removes the specified key based on value or digest comparison.
74
+
75
+
## Options
76
+
77
+
The DELEX command supports a set of options that modify its behavior:
78
+
79
+
*`IFEQ value` -- Remove the key if the value is equal to the specified value.
80
+
*`IFNE value` -- Remove the key if the value is not equal to the specified value.
81
+
*`IFDEQ digest` -- Remove the key if the digest is equal to the specified digest.
82
+
*`IFDNE digest` -- Remove the key if the digest is not equal to the specified digest.
83
+
84
+
In 8.4, keys must be of type string.
85
+
86
+
## Return information
87
+
88
+
{{< multitabs id="return-info"
89
+
tab1="RESP2"
90
+
tab2="RESP3" >}}
91
+
92
+
One of the following:
93
+
-[Error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) if key exists but holds a value that is not a string and `IFEQ/IFNE/IFDEQ/IFDNE` is specified.
94
+
-[Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): 0 if not deleted (the key does not exist or a specified `IFEQ/IFNE/IFDEQ/IFDNE` condition is false), or 1 if deleted.
0 commit comments