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

Max measure unit + docs improvements #88

Open
joaquinjsb opened this issue Jun 24, 2024 · 2 comments
Open

Max measure unit + docs improvements #88

joaquinjsb opened this issue Jun 24, 2024 · 2 comments
Labels
version: Strapi 4 Issues related to the versions supported by Strapi 4

Comments

@joaquinjsb
Copy link

Hello,
when using the configuration,

module.exports = {
  // Step 1: Configure the redis connection
  // @see https://github.com/strapi-community/strapi-plugin-redis
  redis: {
    // ...
  },
  // Step 2: Configure the redis cache plugin
  "rest-cache": {
    config: {
      provider: {
        name: "redis",
        options: {
          max: 32767,
          connection: "default",
        },
      },
      strategy: {
        // if you are using keyPrefix for your Redis, please add <keysPrefix>
        keysPrefix: "<redis_keyPrefix>",
        contentTypes: [
          // list of Content-Types UID to cache
          "api::category.category",
          "api::article.article",
          "api::global.global",
          "api::homepage.homepage",
        ],
      },
    },
  },
};

is the max setting in mb/kb/gb?

@cipick
Copy link

cipick commented Jul 24, 2024

Hey, in this article it's mentioned that

Max denotes the maximum number of entries that the cache can take in. By default, this number is set to 32767.

So to answer your question, the measure unit is number of entries. Hope that helps you, I was also wondering what this means and I think it should be mentioned in the docs 😄

@joaquinjsb
Copy link
Author

Thanks for clarifying it out for me, it should be written on the docs , probably we can just do a pull request of the docs

@derrickmehaffy derrickmehaffy added the version: Strapi 4 Issues related to the versions supported by Strapi 4 label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: Strapi 4 Issues related to the versions supported by Strapi 4
Projects
None yet
Development

No branches or pull requests

3 participants