mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
spicy-redis: Add some commands and touch up parsing
This commit is contained in:
parent
22bda56af3
commit
f0e9f46c7c
21 changed files with 200 additions and 114 deletions
|
@ -7,12 +7,14 @@
|
|||
# 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 Redis::set_command(c: connection, is_orig: bool, command: Redis::SetCommand)
|
||||
{
|
||||
print fmt("SET: %s %s", command$key, command$value);
|
||||
}
|
||||
event Redis::set_command(c: connection, is_orig: bool,
|
||||
command: Redis::SetCommand)
|
||||
{
|
||||
print fmt("SET: %s %s", command$key, command$value);
|
||||
}
|
||||
|
||||
event Redis::get_command(c: connection, is_orig: bool, command: Redis::GetCommand)
|
||||
{
|
||||
print fmt("GET: %s", command);
|
||||
}
|
||||
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