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

bf: ZENKO-1144 add support for Redis sorted sets #567

Merged
merged 2 commits into from
Sep 14, 2018

Commits on Sep 14, 2018

  1. ft: ZENKO-1144 redis wrapper for sorted sets

    Changes in this commit:
    - Add wrapper for Redis sorted set methods: ZADD, ZCARD,
      ZRANGE, ZRANGEBYSCORE, ZREM, ZSCORE
    - Add wrapper for Redis methods: EXISTS
    philipyoo committed Sep 14, 2018
    Configuration menu
    Copy the full SHA
    a3973ac View commit details
    Browse the repository at this point in the history
  2. 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
    philipyoo committed Sep 14, 2018
    Configuration menu
    Copy the full SHA
    0c9c462 View commit details
    Browse the repository at this point in the history