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

Extend expireat() to support datetime object? #143

Open
charleswhchan opened this issue Jun 19, 2018 · 0 comments
Open

Extend expireat() to support datetime object? #143

charleswhchan opened this issue Jun 19, 2018 · 0 comments

Comments

@charleswhchan
Copy link
Contributor

I was comparing some some code we had written against redis-py that uses the expireat(). The real code works because redis-py supports datetime object as well as int argument.

Currently, mockredis's expireat() function only supports int argument. It would be nice if mockredis could also support a similar interface so that the same code can be tested against a mock backend.
https://github.com/locationlabs/mockredis/blob/master/mockredis/client.py#L208

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

No branches or pull requests

1 participant