Skip to content

Instantly share code, notes, and snippets.

@Masum-Osman
Created July 4, 2022 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Masum-Osman/12b653bfa2cfc99ea8fbd77f5438b7cf to your computer and use it in GitHub Desktop.
Save Masum-Osman/12b653bfa2cfc99ea8fbd77f5438b7cf to your computer and use it in GitHub Desktop.
func GetValue(key string) ([]string, error) {
var ctx = context.Background()
val, err := RedisClient.SMembers(ctx, key).Result()
if err != nil {
return nil, err
}
return val, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment