Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/commands/json.debug-memory/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ title: JSON.DEBUG MEMORY
---
Report a value's memory usage in bytes

{{< warning >}}
The actual total memory consumption could be much lower than the reported value because of an internal JSON reference-counting mechanism.
{{< /warning >}}

[Examples](#examples)

## Required arguments
Expand Down
4 changes: 4 additions & 0 deletions content/develop/data-types/json/ram.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ weight: 6
Because of ongoing feature additions, improvements, and optimizations, JSON memory consumption may vary depending on the Redis version.
Redis 8 in Redis Open Source was used for the examples on this page.
{{< /note >}}
<br />
{{< warning >}}
The actual total memory consumption could be much lower than the reported value because of an internal JSON reference-counting mechanism.
{{< /warning >}}

Every key in Redis takes memory and requires at least the amount of RAM to store the key name, as
well as some per-key overhead that Redis uses. On top of that, the value in the key also requires
Expand Down
Loading