You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scans for test* keys only, it ignores the Redis L2 keyPrefix config.
Also, it's scanning for test* instead of test:*, which will catch namespaces like test2, testAbc...
I came up with a fix in drivers/redis.ts as follows:
I'm using Bentocache 1.2.2 with @adonisjs/cache 1.1.3.
I've configured my cache like so:
Redis is configured like so:
Setting values using namespace works well:
Result: a key with the Redis L2 prefix and the namespace (for instance
dev:test:my_key
)But
Scans for
test*
keys only, it ignores the Redis L2 keyPrefix config.Also, it's scanning for
test*
instead oftest:*
, which will catch namespaces like test2, testAbc...I came up with a fix in drivers/redis.ts as follows:
I'd be grateful if you could have a look at this and determine if it's suitable for inclusion to fix the bug.
Thanks!
The text was updated successfully, but these errors were encountered: