agoragames / leaderboard

Leaderboards backed by Redis in Ruby
https://rubygems.org/gems/leaderboard
MIT License
478 stars 65 forks source link

Member data key change? #40

Closed jgadbois closed 11 years ago

jgadbois commented 11 years ago

Did the member_data key change between versions 2.2 and current? I updated to try to get this working with the new redis-rb version and my member_data is always nil now. Any suggestions on migrating member_data?

czarneckid commented 11 years ago

Yes, this is definitely a breaking change between 2.x and 3.x, hence one of the reasons for the major version bump. This was proposed in https://github.com/agoragames/leaderboard/pull/26. I had requested feedback from you since you were the original author of the optional member data functionality.

In 2.x, optional member data is stored in:

"#{leaderboard_name}:member_data:#{member}"

In 3.x, optional member data is stored in:

"#{leaderboard_name}:member_data"
jgadbois commented 11 years ago

That's right, my bad. See my comments in #39