-
Notifications
You must be signed in to change notification settings - Fork 2
feat: implement redis caching actor #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: implement redis caching actor #4
Conversation
|
|
||
| #[derive(Serialize, Deserialize)] | ||
| struct ScoreboardEntry { | ||
| player_id: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we expose more data? how about name, sth like that. We can't show the data just the id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I just pushed my refactor to include more info (api_key, team_name) in scoreboard response.
f9e0186 to
43f1268
Compare
Overview
This pull request aims to integrate Redis into our application as an actor, enabling us to cache game state data for future use.
Changes
Implement a
StoreActorto handle Redis GET / SET actions:game.state.scoreboard) at game end by keyroom:{room_id}:scoreboardapi_key,team_name) onPlayerJoinedmessage/rooms/{room_token}/scoreboardto get afinishedroom's scoreboardExample response: