Beamable SDK
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Beamable.Common.Api.UserDataCache< T > Class Template Referenceabstract
Inheritance diagram for Beamable.Common.Api.UserDataCache< T >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Api.UserDataCache< T >:
Collaboration graph
[legend]

Classes

class  UserDataCacheEntry
 

Public Member Functions

delegate UserDataCache< T > FactoryFunction (string name, long ttlMs, CacheResolver resolver)
 
delegate Promise< Dictionary< long, T > > CacheResolver (List< long > gamerTags)
 
Promise< T > Get (long gamerTag)
 
Promise< Dictionary< long, T > > GetBatch (List< long > gamerTags)
 
void Set (long gamerTag, T data)
 
void Remove (long gamerTag)
 

Protected Member Functions

 UserDataCache (string name, long ttlMs, CacheResolver resolver)
 
abstract void PerformScheduleResolve ()
 
virtual void Resolve ()
 

Protected Attributes

Dictionary< long, UserDataCacheEntrycache = new Dictionary<long, UserDataCacheEntry>()
 
List< long > gamerTagsPending = new List<long>()
 
List< long > gamerTagsInFlight = new List<long>()
 
Promise< Dictionary< long, T > > nextPromise = new Promise<Dictionary<long, T>>()
 
Dictionary< long, T > result = new Dictionary<long, T>()
 

Properties

string Name [get]
 
long TtlMs [get]
 
CacheResolver Resolver [get]
 

The documentation for this class was generated from the following file: