Skip to content

Commit

Permalink
Fixed function name for ValkeyModule_RegisterCommandFilter (#236)
Browse files Browse the repository at this point in the history
The function name is no longer redis.call() but server.call()

Replaced several mentions of Redis in descriptions with Valkey

modified:   topics/modules-api-ref.md

Signed-off-by: Anastasia Alexadrova <[email protected]>
  • Loading branch information
nastena1606 authored Feb 27, 2025
1 parent 77de3bc commit 7db7cf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions topics/modules-api-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ of the initialization function is not defined.

The command function type is the following:

int MyCommand_RedisCommand(ValkeyModuleCtx *ctx, ValkeyModuleString **argv, int argc);
int MyCommand_ValkeyCommand(ValkeyModuleCtx *ctx, ValkeyModuleString **argv, int argc);

And is supposed to always return `VALKEYMODULE_OK`.

Expand Down Expand Up @@ -996,7 +996,7 @@ The function must be called as the first function of a command implementation
that wants to use automatic memory.

When enabled, automatic memory management tracks and automatically frees
keys, call replies and RedisModuleString objects once the command returns. In most
keys, call replies and ValkeyModuleString objects once the command returns. In most
cases this eliminates the need of calling the following functions:

1. [`ValkeyModule_CloseKey()`](#ValkeyModule_CloseKey)
Expand Down Expand Up @@ -6456,7 +6456,7 @@ filter applies in all execution paths including:

1. Invocation by a client.
2. Invocation through [`ValkeyModule_Call()`](#ValkeyModule_Call) by any module.
3. Invocation through Lua `redis.call()`.
3. Invocation through Lua `server.call()`.
4. Replication of a command from a primary.

The filter executes in a special filter context, which is different and more
Expand Down

0 comments on commit 7db7cf5

Please sign in to comment.