Skip to content

functionality to invalidate cache on a specific key #9

@fredrikj31

Description

@fredrikj31

We need a function to be able to invalidate a cached value.

This can be used, so we can invalidate when we for example updates a new value, then can we invalidate the cache in the database.

We can do one of two things:

  1. Populate the fastify instance to have a .clearCache(key) function, which clears the key in the database
  2. Have an option on POST/PATCH endpoint that when onSend clears the specific key, which is specified on the endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions