-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bf: ZENKO-1144 add sorted set support StatsModel
Changes in this commit: - Helper method _normalizeTimestampByHour normalizes date to nearest hour - Helper method _setDateToPreviousHour sets date back 1 hour - method getSortedSetHours returns list of 24 normalized hourly timestamps - method getSortedSetCurrentHour returns normalized hourly timestamp based on epoch passed - method addToSortedSet adds to a sorted set and applies expiry if adding to new sorted set
- Loading branch information
Showing
3 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters