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

TSMRange - make fromTimestamp and toTimestamp interface typed instead of int #2979

Open
tpoxa opened this issue Apr 19, 2024 · 1 comment
Open

Comments

@tpoxa
Copy link

tpoxa commented Apr 19, 2024

Redis documentation says:

fromTimestamp

is start timestamp for the range query (integer Unix timestamp in milliseconds) or - to denote the timestamp of the earliest sample in the time series.

So I believe with having this argument as int I can not denote - as a time of the earliest sample.
Not sure if using 0 same efficient as -

Same goes for +

@monkey92t
Copy link
Collaborator

It looks like this is an issue introduced by #2688, which seems to affect many APIs. However, go-redis needs to ensure API compatibility. It looks like we'll need to come up with a way to redesign it.

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

2 participants