You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the redis doc, zset members should always be strings. We want zset members to be returned as strings so that we don't have to do type assertion explicitly.
The text was updated successfully, but these errors were encountered:
Aden-Q
changed the title
zset member returned as an interface type instead of a string
zset member returned as an interface type instead of a string and is not type-safe
Nov 29, 2023
Expected Behavior
According to the redis doc, zset members should always be strings. We want zset members to be returned as strings so that we don't have to do type assertion explicitly.
Current Behavior
zset member is returned as an interface:
go-redis/sortedset_commands.go
Line 730 in 21bd40a
Possible Solution
Define the Z struct's member field as a string type:
go-redis/sortedset_commands.go
Lines 728 to 731 in 21bd40a
Steps to Reproduce
Context (Environment)
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: