-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use absolute timestamps when dealing with expiry from Redis #317
Conversation
end | ||
table.insert(res, redis.call('pexpiretime', counter_key)) |
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 isn't ideal, as pexpiretime
was introduced in Redis 7... that being said, elasticache supports it
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.
Not that it matters right now but it's also supported by memorystore and I think Azure cache
(Instant::now() - time_start_update_counters).as_millis() as u64 | ||
), | ||
); | ||
cached_counters.apply_remote_delta(counter, new_value, remote_deltas, ttl); |
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.
nit: maybe we should also change this ttl
to expires_at
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.
Updates look good, nice one
No description provided.