Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

t0berius's avatar

redis database design / updating values

For some kind of realtime game, I would like to use redis to store game relevant data.

each game will have:

-start time (timestamp)
-users
    -username
    -user_id
    -bets_placed
        -amount
        -created_at
        -round

How for example update a specified round of a bet placed by a specified user when using redis? I thought about storing the data above in some kind of sorted set (any suggestions, I haven't worked with redis that often)?

0 likes
1 reply

Please or to participate in this conversation.