Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

FUNCTION STATS

Last updated
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.

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.

127.0.0.1:6379> FUNCTION STATS
1) "running_script"
2) (nil)
3) "engines"
4) 1) "LUA"
2) 1) "libraries_count"
2) (integer) 1
3) "functions_count"
4) (integer) 1

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.

FUNCTION LIST, FUNCTION KILL