Closed anotheri closed 1 month ago
Describe the bug There is no way to easily invalidate prefixed key
How To Reproduce (best to provide workable code or tests!)
redisStore
keyPrefix
pref
test
pref:test
.del
I can not see any way to get prefix from store. Is there any appropriate way to handle this scenario?
This should be resolved now.
Describe the bug There is no way to easily invalidate prefixed key
How To Reproduce (best to provide workable code or tests!)
redisStore
withkeyPrefix
param, e.g.pref
test
, check that it's stored in redis aspref:test
.del
method using the same keytest
, it won't clean up the storage (b/c it doesn't use keyPrefix for these methods: https://github.com/jaredwray/cache-manager/blob/main/packages/cache-manager-redis-yet/src/index.ts#L116-L121)I can not see any way to get prefix from store. Is there any appropriate way to handle this scenario?