Skip to content

Commit

Permalink
redis: Add GETDEL command support (envoyproxy#31448)
Browse files Browse the repository at this point in the history
Add GETDEL command support

Signed-off-by: Ilya Nemakov <[email protected]>
  • Loading branch information
Reuuke authored Dec 28, 2023
1 parent 251dcaf commit 21323d4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
3 changes: 3 additions & 0 deletions changelogs/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ new_features:
- area: lua
change: |
Added lua extension of router cluster specifier plugin to support selecting cluster dynamically by lua code.
- area: redis
change: |
Added support for the getdel command.
deprecated:
- area: wasm
Expand Down
1 change: 1 addition & 0 deletions docs/root/intro/arch_overview/other_protocols/redis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ For details on each command's usage see the official
DECRBY, String
GET, String
GETBIT, String
GETDEL, String
GETRANGE, String
GETSET, String
INCR, String
Expand Down
24 changes: 12 additions & 12 deletions source/extensions/filters/network/common/redis/supported_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ struct SupportedCommands {
CONSTRUCT_ON_FIRST_USE(
absl::flat_hash_set<std::string>, "append", "bitcount", "bitfield", "bitpos", "decr",
"decrby", "dump", "expire", "expireat", "geoadd", "geodist", "geohash", "geopos",
"georadius_ro", "georadiusbymember_ro", "get", "getbit", "getrange", "getset", "hdel",
"hexists", "hget", "hgetall", "hincrby", "hincrbyfloat", "hkeys", "hlen", "hmget", "hmset",
"hscan", "hset", "hsetnx", "hstrlen", "hvals", "incr", "incrby", "incrbyfloat", "lindex",
"linsert", "llen", "lmove", "lpop", "lpush", "lpushx", "lrange", "lrem", "lset", "ltrim",
"persist", "pexpire", "pexpireat", "pfadd", "pfcount", "psetex", "pttl", "restore", "rpop",
"rpush", "rpushx", "sadd", "scard", "set", "setbit", "setex", "setnx", "setrange",
"georadius_ro", "georadiusbymember_ro", "get", "getbit", "getdel", "getrange", "getset",
"hdel", "hexists", "hget", "hgetall", "hincrby", "hincrbyfloat", "hkeys", "hlen", "hmget",
"hmset", "hscan", "hset", "hsetnx", "hstrlen", "hvals", "incr", "incrby", "incrbyfloat",
"lindex", "linsert", "llen", "lmove", "lpop", "lpush", "lpushx", "lrange", "lrem", "lset",
"ltrim", "persist", "pexpire", "pexpireat", "pfadd", "pfcount", "psetex", "pttl", "restore",
"rpop", "rpush", "rpushx", "sadd", "scard", "set", "setbit", "setex", "setnx", "setrange",
"sismember", "smembers", "spop", "srandmember", "srem", "sscan", "strlen", "ttl", "type",
"watch", "zadd", "zcard", "zcount", "zincrby", "zlexcount", "zpopmin", "zpopmax", "zrange",
"zrangebylex", "zrangebyscore", "zrank", "zrem", "zremrangebylex", "zremrangebyrank",
Expand Down Expand Up @@ -92,12 +92,12 @@ struct SupportedCommands {
static const absl::flat_hash_set<std::string>& writeCommands() {
CONSTRUCT_ON_FIRST_USE(absl::flat_hash_set<std::string>, "append", "bitfield", "decr", "decrby",
"del", "discard", "exec", "expire", "expireat", "eval", "evalsha",
"geoadd", "hdel", "hincrby", "hincrbyfloat", "hmset", "hset", "hsetnx",
"incr", "incrby", "incrbyfloat", "linsert", "lmove", "lpop", "lpush",
"lpushx", "lrem", "lset", "ltrim", "mset", "multi", "persist", "pexpire",
"pexpireat", "pfadd", "psetex", "restore", "rpop", "rpush", "rpushx",
"sadd", "set", "setbit", "setex", "setnx", "setrange", "spop", "srem",
"zadd", "zincrby", "touch", "zpopmin", "zpopmax", "zrem",
"geoadd", "getdel", "hdel", "hincrby", "hincrbyfloat", "hmset", "hset",
"hsetnx", "incr", "incrby", "incrbyfloat", "linsert", "lmove", "lpop",
"lpush", "lpushx", "lrem", "lset", "ltrim", "mset", "multi", "persist",
"pexpire", "pexpireat", "pfadd", "psetex", "restore", "rpop", "rpush",
"rpushx", "sadd", "set", "setbit", "setex", "setnx", "setrange", "spop",
"srem", "zadd", "zincrby", "touch", "zpopmin", "zpopmax", "zrem",
"zremrangebylex", "zremrangebyrank", "zremrangebyscore", "unlink");
}

Expand Down

0 comments on commit 21323d4

Please sign in to comment.