A UserDataCache<T> is a utility class that stores some generic type per player gamertag.
More...
|
|
delegate UserDataCache< T > | FactoryFunction (string name, long ttlMs, CacheResolver resolver, IDependencyProvider provider) |
| | A general purpose factory function that returns a new instance of the UserDataCache<T>.
|
| |
|
delegate Promise< Dictionary< long, T > > | CacheResolver (List< long > gamerTags) |
| | A UserDataCache<T> has a mapping from player gamertags to some generic type per player. This function takes a set of gamertags, and fetches the latest data for each.
|
| |
| abstract Promise< T > | Get (long gamerTag) |
| | Get the given player's data. If the data does not exist in the cache yet, the CacheResolver function will be triggered to resolve the data. More...
|
| |
| abstract Promise< Dictionary< long, T > > | GetBatch (List< long > gamerTags) |
| | Get multiple players' data. If the players do not have the data in the cache yet, the CacheResolver function will be triggered to resolve all the data. More...
|
| |
| abstract void | Set (long gamerTag, T data) |
| | Manually set the player data More...
|
| |
| abstract void | Remove (long gamerTag) |
| | Remove a player from the cache. The next time this player's data is requested, the CacheResolver will be used to get the latest data for the player More...
|
| |
A UserDataCache<T> is a utility class that stores some generic type per player gamertag.
- Template Parameters
-