Skip to content

Commit

Permalink
Protobuf - adds sorted set commands request type
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamazon committed Jan 10, 2024
1 parent 4029871 commit 6e2eba4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glide-core/src/protobuf/redis_request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ enum RequestType {
Exists = 58;
Unlink = 59;
TTL = 60;
ZADD = 61;
ZREM = 62;
ZRANGE = 63;
ZCARD = 64;
}

message Command {
Expand Down
4 changes: 4 additions & 0 deletions glide-core/src/socket_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ fn get_command(request: &Command) -> Option<Cmd> {
RequestType::Exists => Some(cmd("EXISTS")),
RequestType::Unlink => Some(cmd("UNLINK")),
RequestType::TTL => Some(cmd("TTL")),
RequestType::ZADD => Some(cmd("ZADD")),
RequestType::ZREM => Some(cmd("ZREM")),
RequestType::ZRANGE => Some(cmd("ZRANGE")),
RequestType::ZCARD => Some(cmd("ZCARD")),
}
}

Expand Down

0 comments on commit 6e2eba4

Please sign in to comment.