Skip to content
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

Cannot set TTL for Redis.Cluster #1899

Open
ns-ochao opened this issue Jun 24, 2024 · 0 comments
Open

Cannot set TTL for Redis.Cluster #1899

ns-ochao opened this issue Jun 24, 2024 · 0 comments

Comments

@ns-ochao
Copy link

ns-ochao commented Jun 24, 2024

With standalone Redis, TTL can be set with the below cacheConfig

{
  ttl: 1800,
  store: ... ,
  host: 'localhost',
  port: '6379',
  ...
}

However for Redis Cluster, setting the below cacheConfig will not have TTL set

{
  ttl: 1800,
  store: ... ,
  clusterConfig: {
    nodes: [
      {
        host: ...,
        port: ...,
      },
      {
        host: ...,
        port: ...,
      }, ...
    ],
    options: { ... },
  }
  ...
}

Is there a way to set TTL for Redis Cluster? Or is it not supported?

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

No branches or pull requests

1 participant