type-cacheable icon indicating copy to clipboard operation
type-cacheable copied to clipboard

[bug] CacheClear is not clearing all the keys if cacheKey is specified as string[]

Open pupipipu opened this issue 3 years ago • 3 comments

when cacheKey is set as an array of string for CacheClear decorator, it'll only clear out the first key in the array

pupipipu avatar Oct 19 '20 07:10 pupipipu

Which adapter are you using?

joshuaslate avatar Oct 28 '20 05:10 joshuaslate

we're using ioredis-adapter

pupipipu avatar Oct 28 '20 06:10 pupipipu

@pupipipu could I get a bit more context? This test is passing: https://github.com/joshuaslate/type-cacheable/commit/4e694bb19e87f7c7c563d66c623b76a6500c2b8d#diff-ea1aac11c730e1fa8cab288badbc340c9c880f39fbf749beb0dae81429cc479cR350

joshuaslate avatar Oct 28 '20 13:10 joshuaslate