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

Feature to disable cache during development #6

Closed
fredrikj31 opened this issue Nov 10, 2023 · 0 comments · Fixed by #7
Closed

Feature to disable cache during development #6

fredrikj31 opened this issue Nov 10, 2023 · 0 comments · Fixed by #7
Assignees

Comments

@fredrikj31
Copy link
Member

fredrikj31 commented Nov 10, 2023

A feature request on adding a flag, when registering the plugin to disable caching.

This can be useful when developing, so we don't get the cached version from the database.

Example of the flag you could set could be:

const fastify = Fastify().register(dynamodbCache, {
  dynamoDbRegion: "", // AWS region of your choice.
  dynamoDbAddress: "http://localhost:8000", // Optional! If you are hosting your own instance of Dynamo (locally or cloud), then specify the ip address of the database here.
  tableName: "fastify-dynamodb-cache", // DynamoDB table name
  defaultTTLSeconds: 30, // Default TTL (seconds), which would be used if no TTL is specified on the endpoint.

  // NEW FLAG
  disableCache: true | false // Disables caching during development
});
@fredrikj31 fredrikj31 self-assigned this Nov 10, 2023
@fredrikj31 fredrikj31 linked a pull request Nov 10, 2023 that will close this issue
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 a pull request may close this issue.

1 participant