question

kova avatar image
kova asked

How can I get a list of all keys in player data?

Hello.

I'm managing player's title data and I need to delete some key-value pairs. How can I get a list of all keys player has in the database, so I can delete some? Some keys are dynamically generated and I can't possibly store a persistent list of them all during the game lifetime.

Player Data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The Keys property is optional in the calls to retrieve user data. Not specifying it returns all the associated user data for the player in question.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kova avatar image kova commented ·

Thank you. It will be a bit waste of bandwidth since I don't need the data, just the keys, but it will work.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.