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

[NEW] Ability to Increment and Store different parts in one command #22

Open
randrewy opened this issue Jul 12, 2023 · 0 comments
Open

Comments

@randrewy
Copy link

Fair leaderboards with timestamp and updates

Hi, another feature request for leaderboard here.

It is common to order players with same highscore by timestamp, so that the first one to get this score is higher in rank. This is easily done with this module.

The issue is in increment command, when you add some score points what you actually want for timestamp part is not to increment it, but to update it to current time.

Suppose we have this scores for id

1000#1500000000

after this operation (illustration only, not the desired syntax):

exzincrbyandset key +10#=1689158754 id

result should be

1010#1689158754
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