Skip to content

Adaptive cache docs #17

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Adaptive cache docs #17

wants to merge 2 commits into from

Conversation

tillkruss
Copy link
Member

  • Add slot_cache_expiry description
  • Review adaptive.md

@tillkruss tillkruss self-assigned this Jul 3, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates documentation to introduce adaptive caching, support Valkey alongside Redis, and prepare for a new slot cache expiry setting.

  • Adds an adaptive caching guide.
  • Updates menus and API docs to reference Valkey.
  • Inserts placeholder for slot_cache_expiry in configuration.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/1.x/index.md Added Eviction and Ratios sections; reordered menu entries
docs/1.x/connections.md Expanded Redis connection notes to include Valkey
docs/1.x/configuration.md Updated invalidation endpoint note; added placeholder for expiry
docs/1.x/api.md Adjusted metadata bullets for Redis/Valkey commands
docs/1.x/adaptive.md New guide for adaptive caching setup
Comments suppressed due to low confidence (4)

docs/1.x/index.md:12

  • The Ratios link currently points to /docs/1.x/events; it should target the correct ratios page (e.g., /docs/1.x/ratios).
  - [Ratios](/docs/1.x/events)

docs/1.x/index.md:14

  • There are two Tables entries in this section; consider removing the duplicate to keep the menu concise.
  - [Tables](/docs/1.x/tables)

docs/1.x/configuration.md:51

  • This entry has a placeholder (???); please provide a clear description of what slot_cache_expiry controls and its default behavior.
| `relay.cluster.slot_cache_expiry` |                  | ??? |

docs/1.x/api.md:26

  • The RedisCommand bullet was removed when adding ValkeyCommand; you may want to retain both bullets to document the distinction between Redis and Valkey commands.
- `ValkeyCommand` indicates the method represents a [command](https://valkey.io/commands/)

| `relay.loglevel` | `off` | Whether Relay should log debug information. Supported levels: `debug`, `verbose`, `error`, `off` |
| `relay.logfile` | | The path to the file in which information should be logged, if logging is enabled. |
| `relay.cluster.seeds` | | The list of cluster nodes addresses grouped by cluster name, which will be used to initialize each cluster, encoded as URL query string, e.g. `cluster1[]=127.0.0.1:7000&cluster2[]=127.0.0.1:8000` |
| `relay.cluster.auth` | | The list of credentials for each cluster, encoded as URL query string. Password string or username/password pairs may be used, e.g. `cluster1=secret&cluster2[]=username&cluster2[]=secret` |
| `relay.cluster.timeout` | | The maximum number of seconds Relay will wait while establishing connection to a single cluster node. |
| `relay.cluster.read_timeout` | | The maximum number of seconds Relay will wait while reading from a cluster node. |
| `relay.cluster.slot_cache_expiry` | | ??? |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yatsukhnenko What does this do in simple words?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant