-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: implement redis caching actor #4
base: master
Are you sure you want to change the base?
feat: implement redis caching actor #4
Conversation
@@ -13,6 +13,17 @@ pub struct QueryString { | |||
name: String, | |||
} | |||
|
|||
#[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
StoreActor
to handle Redis GET / SET actions:game.state.scoreboard
) at game end by keyroom:{room_id}:scoreboard
api_key
,team_name
) onPlayerJoined
message/rooms/{room_token}/scoreboard
to get afinished
room's scoreboardExample response: