Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mlb5000
Copy link

@mlb5000 mlb5000 commented Sep 20, 2024

Implement hexpire command for #1898

Will require an update to @ioredis/commands from this PR ioredis/commands#3

@PierreFlowdesk
Copy link

👋 Any update for this PR? It would be awesome to integrate this feature in the next release 💪

Copy link
Contributor

@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.

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(() => {
Copy link
Contributor

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(() => {
Copy link
Contributor

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 () => {
Copy link
Contributor

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>;
Copy link
Contributor

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants