Skip to content

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

Description

@randrewy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions