Closed SassNinja closed 5 years ago
Merging #60 into master will increase coverage by
0.04%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #60 +/- ##
==========================================
+ Coverage 96.85% 96.89% +0.04%
==========================================
Files 6 6
Lines 127 129 +2
==========================================
+ Hits 123 125 +2
Misses 4 4
Impacted Files | Coverage Δ | |
---|---|---|
src/hooks/redis.js | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b0dc8de...27e550c. Read the comment docs.
I will review it this weekend. Thank you! (I need to finish my hand over)
Summary
(If you have not already please refer to the contributing guideline as described here)
If so, please mention them to keep the conversations linked together.
Other Information
This PR adds the new option
immediateCacheKey
to the before hook. Iftrue
the cache key will be determined in the before hook (instead of the after hook) and stored inparams.cacheKey
to be available in the after hook.The use case for this feature is if you do a lot of query manipulation. With this option you're able to keep the cache key size as small as possible. I've updated the README accordingly and added tests.
@idealley would you please review and let me know what you think?
Closes https://github.com/idealley/feathers-hooks-rediscache/issues/59