Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redissonClient.getBuckets().get("foo") with NameMapper set doesn't apply NameMapper #4444

Closed
chaimmintz opened this issue Jul 26, 2022 · 1 comment
Labels
Milestone

Comments

@chaimmintz
Copy link

I have a NameMapper that adds a prefix to all keys during map (and removes the prefix during unmap). Let's say the prefix is "prefix.` for the purposes of this submission.

Expected behavior
redissonClient.getBuckets().get("foo") with NameMapper set should retrieve the prefix.foo key

Actual behavior
redissonClient.getBuckets().get("foo") with NameMapper set retrieves the foo key (without the expected prefix)

Not sure if set/trySet in RedissonBuckets.java have similar issues.

As a workaround, redissonClient.getBucket(key).get() does apply the NameMapper correctly (but it doesn't support bulk lookup)

Redis version
6.0.1

Redisson version
3.17.5 (latest)

Redisson configuration
With a NameMapper that adds prefix. to all keys.

@mrniko mrniko added the bug label Aug 5, 2022
@mrniko mrniko added this to the 3.17.6 milestone Aug 5, 2022
@mrniko
Copy link
Member

mrniko commented Aug 23, 2022

Fixed. Thanks for report

@mrniko mrniko closed this as completed Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants