cache-manager icon indicating copy to clipboard operation
cache-manager copied to clipboard

feat: add factory to cache-key

Open ivanfmn opened this issue 7 months ago • 4 comments

Added factory to 'CacheKey' decorator and use it in interceptor

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [ ] Bugfix
  • [x] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • added cache key factory in decorator and interceptor
  • export factory types
  • change types in interceptor for const cacheKey and cacheTTL
  • move doc from CacheTTLFactory to CacheTTL

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

ivanfmn avatar Apr 15 '25 09:04 ivanfmn