JSON.DEBUG MEMORY

Syntax
JSON.DEBUG MEMORY key [path]
Available in:
Redis Stack / JSON 1.0.0
Time complexity:
O(N) when path is evaluated to a single value, where N is the size of the value, O(N) when path is evaluated to multiple values, where N is the size of the key

Report a value's memory usage in bytes. path defaults to root if not provided.

Return

Integer reply: the value's size in bytes.

Feedback

If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.