Skip to content

impl: caseInsensitive option for each function - #7

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

PavelPashov merged 1 commit into
ioredis:mainfrom
pinkiesky:fix-1933-keyPrefix

Conversation

@pinkiesky

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@pinkiesky

Copy link
Copy Markdown
Contributor Author

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

@PavelPashov PavelPashov left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
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

github-actions Bot commented Nov 3, 2025

Copy link
Copy Markdown

🎉 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