FUNCTION STATS
FUNCTION STATS
- Group
- Scripting and functions
- Complexity
- O(1)
- Arity
- 2 (exactly, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
FUNCTION STATS reports how many libraries and functions are loaded for each
engine. The only engine is LUA.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Always | Flat array of field, value pairs | Map |
The fields are running_script, which is always nil, and engines, holding
one entry for LUA with libraries_count and functions_count.
Examples
Section titled “Examples”127.0.0.1:6379> FUNCTION STATS1) "running_script"2) (nil)3) "engines"4) 1) "LUA" 2) 1) "libraries_count" 2) (integer) 1 3) "functions_count" 4) (integer) 1Compatibility
Section titled “Compatibility”Same reply shape as Redis 7 and Valkey 8. Redis fills running_script with
details of the function running at the time; HotKV always reports nil there.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.