JSON.DEBUG MEMORY key [path]
@json,
@read,
Report a value's memory usage in bytes
keyis key to parse.
pathis JSONPath to specify. Default is root $.
Create a JSON document.
redis> JSON.SET item:2 $ '{"name":"Wireless earbuds","description":"Wireless Bluetooth in-ear headphones","connection":{"wireless":true,"type":"Bluetooth"},"price":64.99,"stock":17,"colors":["black","white"], "max_level":[80, 100, 120]}'
OKGet the values' memory usage in bytes.
redis> JSON.DEBUG MEMORY item:2
(integer) 573| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |