You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ The `filename` property value can be any file name path which is relative to the
102
102
We added a new property `class` which allows you to override the CSS class of the image. Images have by default a `block` display in Tailwind. You can change this by setting the class property to `inline`. The following example shows two images that are in a single line:
parser.add_argument("pathname", help="Path of the folder to scan")
51
+
parser.add_argument("--find-unused", nargs=1, help="Prints out all images in IMAGEFOLDER that are not found in pathname. Set pathname to the top content folder to scan all content for images.", metavar="IMAGEFOLDER")
Copy file name to clipboardExpand all lines: content/commands/json.debug-memory/index.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ title: JSON.DEBUG MEMORY
35
35
---
36
36
Report a value's memory usage in bytes
37
37
38
+
{{< warning >}}
39
+
The actual total memory consumption by a key could be much lower than the value reported by this command because of an internal JSON string reuse mechanism. For more information, see the [JSON memory usage page]({{< relref "/develop/data-types/json/ram#json-string-reuse-mechanism" >}}).
Copy file name to clipboardExpand all lines: content/commands/spublish/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,14 @@ title: SPUBLISH
52
52
Posts a message to the given shard channel.
53
53
54
54
In Redis Cluster, shard channels are assigned to slots by the same algorithm used to assign keys to slots.
55
-
A shard message must be sent to a node that own the slot the shard channel is hashed to.
56
-
The cluster makes sure that published shard messages are forwarded to all the node in the shard, so clients can subscribe to a shard channel by connecting to any one of the nodes in the shard.
55
+
A shard message must be sent to a node that owns the slot the shard channel is hashed to.
56
+
The cluster makes sure that published shard messages are forwarded to all the nodes in the shard, so clients can subscribe to a shard channel by connecting to any one of the nodes in the shard.
57
57
58
58
For more information about sharded pubsub, see [Sharded Pubsub]({{< relref "/develop/interact/pubsub#sharded-pubsub" >}}).
59
59
60
60
## Examples
61
61
62
-
For example the following command publish to channel`orders` with a subscriber already waiting for message(s).
62
+
For example the following command publishes to the`orders` channel with a subscriber already waiting for message(s).
Copy file name to clipboardExpand all lines: content/develop/data-types/json/ram.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,3 +123,12 @@ JSON. The _MessagePack_ column is for reference purposes and reflects the length
123
123
124
124
> Note: In the current version, deleting values from containers **does not** free the container's
125
125
allocated memory.
126
+
127
+
## JSON string reuse mechanism
128
+
129
+
Redis uses a global string reuse mechanism to reduce memory usage. When a string value appears multiple times, either within the same JSON document
130
+
or across different documents on the same node, Redis stores only a single copy of that string and uses references to it.
131
+
This approach is especially efficient when many documents share similar structures.
132
+
133
+
However, the `JSON.DEBUG MEMORY` command reports memory usage as if each string instance is stored independently, even when it's actually reused.
134
+
For example, the document `{"foo": ["foo", "foo"]}` reuses the string `"foo"` internally, but the reported memory usage counts the string three times: once for the key and once for each array element.
Copy file name to clipboardExpand all lines: content/develop/interact/search-and-query/_index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,8 @@ for full installation instructions.
53
53
54
54
## License and source code
55
55
56
-
The Redis Query Engine features of Redis are available under the Source Available License 2.0 (RSALv2) or the Server Side Public License v1 (SSPLv1). Please read the [license file](https://raw.githubusercontent.com/RediSearch/RediSearch/master/LICENSE.txt) for further details. The source code and the [detailed release notes](https://github.com/RediSearch/RediSearch/releases) are available on [GitHub](https://github.com/RediSearch/RediSearch).
56
+
The Redis Query Engine features of Redis are available under the Source Available License 2.0 (RSALv2), the Server Side Public License v1 (SSPLv1), or the GNU Affero General Public License version 3 (AGPLv3). Please read the [license file](https://raw.githubusercontent.com/RediSearch/RediSearch/master/LICENSE.txt) for further details. The source code and the [detailed release notes](https://github.com/RediSearch/RediSearch/releases) are available on [GitHub](https://github.com/RediSearch/RediSearch).
57
57
58
58
Do you have questions? Feel free to ask at the [RediSearch forum](https://forum.redis.com/c/modules/redisearch/).
0 commit comments