Skip to main content

What is a Sorted Set?

A Sorted Set (ZSET) stores unique members, each associated with a numeric score. Members are ordered by score, which makes ZSETs ideal for leaderboards, rankings, and time- or priority-based lists. You can add, update, or remove members while keeping the order automatically maintained.
  • Each member is unique; adding the same member updates its score.
  • Scores are numeric; members are ordered by score, then lexicographically for ties.
  • Membership is stored in-memory with scores, so very large sets can impact memory usage.
https://redis.io/docs/latest/develop/data-types/sorted-sets/

Creating a Sorted Set

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: Edge Storage. 2. Find the Edge Storage you want to edit and click its name to open it. 3. Click Insert item and select Sorted Set.
FastEdge Insert Sorted Set
4. Give the Sorted Set a key, then click Insert value
FastEdge Create Sorted Set
5. Add as many rows as you would like, providing a score and the value. Values can be entered manually or uploaded from file.
FastEdge Insert Sorted Set
Values
Click + Add value to get another entry row.
InfoUploading values from file has a 1 MB file size limit.Note: File uploads will transform the value in the UI Portal to a hash representation of its content.

Editing a Sorted Set

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: Edge Storage. 2. Find the Edge Storage you want to edit and click its name to open it. 3. Find the Sorted Set you want to edit, click the three-dot icon next to the key-value and select edit.
FastEdge Edge Sorted Set
Edit
4. You are now able to add more values, edit existing values or delete values. 5. If everything is configured correctly, click Save Sorted Set in the top right corner.

Deleting a Sorted Set

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: Edge Storage. 2. Find the Edge Storage you want to edit and click its name to open it. 3. Find the Sorted Set you want to delete, click the three-dot icon next to the Sorted Set and select delete. 4. Confirm you want to delete the entire Sorted Set.