mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
spicy-redis: Separate client/server
This makes the parser more official and splits the client/server out from each other. Apparently they're different enough to be separate.
This commit is contained in:
parent
f0f2969a66
commit
757cbbf902
28 changed files with 809 additions and 702 deletions
|
@ -7,12 +7,12 @@
|
|||
# Sometimes commands aren't serialized, like when pipelining. This still works! So we
|
||||
# should handle this. This particular example has a few commands, amongst them a SET and
|
||||
# a GET.
|
||||
event RESP::set_command(c: connection, is_orig: bool, command: RESP::SetCommand)
|
||||
event Redis::set_command(c: connection, is_orig: bool, command: Redis::SetCommand)
|
||||
{
|
||||
print fmt("SET: %s %s", command$key, command$value);
|
||||
}
|
||||
|
||||
event RESP::get_command(c: connection, is_orig: bool, command: RESP::GetCommand)
|
||||
event Redis::get_command(c: connection, is_orig: bool, command: Redis::GetCommand)
|
||||
{
|
||||
print fmt("GET: %s", command);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue