Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 2.41 KB

README.md

File metadata and controls

59 lines (48 loc) · 2.41 KB

Docs

Examples

API Reference

Types

Most common types exposed by the API.

  • ID: string
  • Score: number
  • Rank: number 1-based
  • SortPolicy: 'high-to-low' | 'low-to-high'
  • UpdatePolicy: 'replace' | 'aggregate' | 'best'

Redis keys

Patterns used for the Redis keys is the following:

  • Leaderboard: <key>
  • PeriodicLeaderboard: <baseKey>:<CycleKey>
  • LeaderboardMatrix: <baseKey>:<dimension>:<feature> with :<CycleKey> if applies

To avoid overlaps or other issues, we recommend avoiding the use of : in base keys, dimension name, and feature name.