-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implement hexpire for #1898 #1918
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
base: main
Are you sure you want to change the base?
Conversation
👋 Any update for this PR? It would be awesome to integrate this feature in the next release 💪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution, please make sure you generate the method signatures on the RedisCommander
interface by running node ./bin/index.js
const CUSTOM_PROPERTY = "_myCustomProperty"; | ||
|
||
describe("hexpire", () => { | ||
beforeEach(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems irrelevant to the hexpire
command
}); | ||
}); | ||
|
||
afterEach(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems irrelevant to the hexpire
command
delete (Object.prototype as any)[CUSTOM_PROPERTY]; | ||
}); | ||
|
||
it("should handle special field names", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a test that verifies all possible return types from the server listed here: https://redis.io/docs/latest/commands/hexpire/
numFields: number, | ||
...fieldValues: string[] | ||
] | ||
): Result<"OK", Context>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This return type is incorrect, should be Result<number[], Context>
Implement
hexpire
command for #1898Will require an update to
@ioredis/commands
from this PR ioredis/commands#3