We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98f260 commit f7af6e0Copy full SHA for f7af6e0
lib/kredis/types/unique_list.rb
@@ -46,7 +46,7 @@ def insert(elements, prepending: false)
46
end
47
48
def generate_score(index, negative:)
49
- score = Integer([ *basis_score_components, index ].join, 10)
+ score = Integer([ *basis_score_components, index.to_s.rjust(6, "0") ].join, 10)
50
negative ? -score : score
51
52
0 commit comments