Forum Multiplayer Game<P>.ServerCache

Discussion and help relating to the PlayerIO Multiplayer API.

Game<P>.ServerCache

Postby EliteCodes » April 16th, 2015, 8:36 am

Hi coders,

could anyone please give me a hint, how to use the ServerCache?!
I dont get it. The documentation says:

Code: Select all
public ServerCache ServerCache [read-only]
   
Use server cache to store information in a game server. This information will be available in all rooms hosted in the game server where you stored it but will not be available in all your rooms since multiple game servers are used to host all your rooms. Server cache is ideal to cache BigDb DatabaseObject or any other data that is expensive to gather.

If the property is 'read-only', how to store something into the ServerCache?
I just wanted to save some vars there, loaded from BigDB.
Thanks in advance!
Happy coding...
Lee
EliteCodes
 
Posts: 1
Joined: March 27th, 2013, 12:58 pm

Return to Multiplayer



cron