Skip to content

impl: caseInsensitive option for each function#7

Merged
PavelPashov merged 1 commit intoioredis:mainfrom
pinkiesky:fix-1933-keyPrefix
Nov 3, 2025
Merged

impl: caseInsensitive option for each function#7
PavelPashov merged 1 commit intoioredis:mainfrom
pinkiesky:fix-1933-keyPrefix

Conversation

@pinkiesky
Copy link
Contributor

Hi there. I want to fix redis/ioredis#1933 ('keyPrefix' not working when command is in capital letter)

What is the root cause of the issue: to add prefix for keys, ioredis should get key position for a specific command. However, exists, hasFlag, and getKeyIndexes are case-sensitive by default. Case-insensitivity will fix the issue (I tested it locally)

That is the reason why this PR appear :)

So, after we merge this PR, I will prepare the ioredis counterpart of the fix

P.S. I didn't change the default behaviour of the function and added an option for the sake of not ruin the compatibility somewhere

@PavelPashov
Copy link
Collaborator

Hey @pinkiesky, thanks for working on this! It’d be great to have both PRs to review together.

@pinkiesky
Copy link
Contributor Author

Hi @PavelPashov,
redis/ioredis#2036 -- done

Copy link
Collaborator

@PavelPashov PavelPashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for the contribution

@pinkiesky
Copy link
Contributor Author

@PavelPashov, could you merge this PR? It looks like I have no access or so

Or this PR need one more approval, I'm not sure 🤔

@PavelPashov PavelPashov merged commit 4f89cfe into ioredis:main Nov 3, 2025
3 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 3, 2025
# [1.5.0](v1.4.0...v1.5.0) (2025-11-03)

### Features

* caseInsensitive option for each function ([#7](#7)) ([4f89cfe](4f89cfe))
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'keyPrefix' not working when command is in capital letter

2 participants