-
Notifications
You must be signed in to change notification settings - Fork 270
RS and RC: Client-side caching and compatibility #550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6676f92
DOC-3951 RS: Add tracking_table_max_keys and default_tracking_table_m…
rrelledge 15ff4c8
DOC-3951 RS: Add tracking-table-max-keys to Redis CE config settings …
rrelledge 9167ed9
Fix new row format in bdb object table
rrelledge de20597
DOC-3951 RS: Client-side caching and compatibility
rrelledge 6ac7903
DOC-3951 RS and RC: Mention client-side caching on compatibility inde…
rrelledge c893089
Apply suggestions from code review
rrelledge 78c7b50
Merge branch 'release-rs-fuya-fuya' into DOC-3951
rrelledge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
content/operate/rs/references/compatibility/client-side-caching.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| --- | ||
| Title: Client-side caching compatibility with Redis Software and Redis Cloud | ||
| alwaysopen: false | ||
| categories: | ||
| - docs | ||
| - operate | ||
| - rs | ||
| description: Redis Software and Redis Cloud compatibility with client-side caching. | ||
| linkTitle: Client-side caching | ||
| toc: 'true' | ||
| weight: 80 | ||
| --- | ||
|
|
||
| Redis Software and Redis Cloud support [client-side caching]({{<relref "/develop/connect/clients/client-side-caching">}}) for databases with Redis versions 7.4 or later. | ||
|
|
||
| ## Required database versions | ||
|
|
||
| Client-side caching in Redis Software and Redis Cloud requires Redis database versions 7.4 or later. | ||
|
|
||
| The following table shows the differences in client-side caching support by product: | ||
|
|
||
| | Redis product | Client-side caching support | | ||
| |-------------------------|-----------------------------| | ||
| | Redis Community Edition | Redis v6.0 and later | | ||
| | Redis Cloud | Redis database v7.4 and later | | ||
| | Redis Software | Redis database v7.4 and later | | ||
|
|
||
| ## Supported RESP versions | ||
|
|
||
| Client-side caching in Redis Software and Redis Cloud requires RESP3. | ||
rrelledge marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The following table shows the differences in client-side caching support for RESP by product: | ||
|
|
||
| | Redis product with client-side caching | RESP2 | RESP3 | | ||
| |-------------------------|-------|-------| | ||
| | Redis Community Edition | <span title="Supported">✅</span> | <span title="Supported">✅</span> | | ||
| | Redis Cloud | <span title="Not supported">❌</span> | <span title="Supported">✅</span> | | ||
| | Redis Software | <span title="Not supported">❌</span> | <span title="Supported">✅</span> | | ||
|
|
||
| ## Two connections mode with REDIRECT not supported | ||
|
|
||
| Unlike Redis Community Edition, Redis Software and Redis Cloud do not support [two connections mode]({{<relref "/develop/reference/client-side-caching#two-connections-mode">}}) or the `REDIRECT` option for [`CLIENT TRACKING`]({{<relref "/commands/client-tracking">}}). | ||
|
|
||
| ## Change tracking_table_max_keys for a database | ||
|
|
||
| When client-side caching is enabled, Redis uses an invalidation table to track which keys are cached by each connected client. | ||
|
|
||
| The configuration setting `tracking-table-max-keys` determines the maximum number of keys stored in the invalidation table and is set to `1000000` keys by default. Redis Software does not support using `CONFIG SET` to change this value, but you can use the REST API or rladmin instead. | ||
|
|
||
| To change `tracking_table_max_keys` for a database in a Redis Software cluster: | ||
|
|
||
| - [`rladmin tune db`]({{<relref "/operate/rs/references/cli-utilities/rladmin/tune#tune-db">}}): | ||
|
|
||
| ```sh | ||
| rladmin tune db db:<ID> tracking_table_max_keys 2000000 | ||
| ``` | ||
|
|
||
| You can use the database name in place of `db:<ID>` in the preceding command. | ||
|
|
||
| - [Update database configuration]({{<relref "/operate/rs/references/rest-api/requests/bdbs#put-bdbs">}}) REST API request: | ||
|
|
||
| ```sh | ||
| PUT /v1/bdbs/<uid> | ||
| { "tracking_table_max_keys": 2000000 } | ||
| ``` | ||
| ## Change default tracking_table_max_keys | ||
| The cluster-wide option `default_tracking_table_max_keys_policy` determines the default value of `tracking_table_max_keys` for new databases in a Redis Software cluster. `default_tracking_table_max_keys_policy` is set to `1000000` keys by default. | ||
| To change `default_tracking_table_max_keys_policy`, use one of the following methods: | ||
| - [`rladmin tune cluster`]({{<relref "/operate/rs/references/cli-utilities/rladmin/tune#tune-cluster">}}) | ||
| ```sh | ||
| rladmin tune cluster default_tracking_table_max_keys_policy 2000000 | ||
| ``` | ||
| - [Update cluster policy]({{<relref "/operate/rs/references/rest-api/requests/cluster/policy#put-cluster-policy">}}) REST API request: | ||
| ```sh | ||
| PUT /v1/cluster/policy | ||
| { "default_tracking_table_max_keys_policy": 2000000 } | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.