FCALL_RO

Since 1.1.0Scripting

Syntax

FCALL_RO function_name numkeys key [key ...] arg [arg ...]
  • Flags: movablekeys, readonly
  • ACL categories: @scripting, @slow
  • Arity: -3

FCALL for a function registered with the no-writes flag; any other is refused. It can be sent to a read-only replica.

Examples

> FCALL_RO getk 1 greeting
"hi"
> FCALL_RO hello 0 x
(error) ERR Can not execute a script with write flag using *_ro command.