FCALL_RO

FCALL_RO function numkeys [key [key ...]] [arg [arg ...]]
Available since:
Redis Open Source 7.0.0
Time complexity:
Depends on the function that is executed.
ACL categories:
@slow, @scripting,
Compatibility:
Redis Software and Redis Cloud compatibility

This is a read-only variant of the FCALL command that cannot execute commands that modify data.

For more information about when to use this command vs FCALL, please refer to Read-only scripts.

For more information please refer to Introduction to Redis Functions.

Required arguments

function

The name of the function to call. It must be a read-only function.

numkeys

The number of key names that follow. Arguments after the keys are passed as regular arguments.

Optional arguments

key [key ...]

The key names the function accesses, provided to it via the Lua KEYS global variable. There must be exactly numkeys of them.

arg [arg ...]

Additional arguments provided to the function via the Lua ARGV variable.

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

The return value depends on the function that was executed.
RATE THIS PAGE
Back to top ↑