STATS
Syntax
STATS key [key...]
Description
Return stats for one or more keys.
Examples
STATS fleet1 fleet2 # return key stats for 'fleet' and 'fleet2'
Returns
The stats
array will contain one entry for each key requested. If the key is not found then the entry will be null
.
in_memory_size
: The estimated memory size in bytes that the key is using.num_objects
: The object count.num_points
: The total number of latitude, longitude coordinates in the key. This will always be equal to or greater thannum_objects
.
{
"ok": true,
"stats": [{
"in_memory_size": 4823028,
"num_objects": 26343,
"num_points": 350929,
},{
"in_memory_size": 36552218,
"num_objects": 162341,
"num_points": 1029938
}],
"elapsed": "27.677µs"
}
Related Commands
BOUNDS
DEL
DROP
EXPIRE
FSET
GET
JDEL
JGET
JSET
KEYS
PDEL
PERSIST
RENAME
RENAMENX
SET
STATS
TTL