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

Public Member Functions

 UnityUserDataCache (string name, long ttlMs, CacheResolver resolver)
 
override Promise< T > Get (long gamerTag)
 
override Promise< Dictionary< long, T > > GetBatch (List< long > gamerTags)
 
override void Set (long gamerTag, T data)
 
override void Remove (long gamerTag)
 
- Public Member Functions inherited from Beamable.Common.Api.UserDataCache< T >
delegate UserDataCache< T > FactoryFunction (string name, long ttlMs, CacheResolver resolver)
 
delegate Promise< Dictionary< long, T > > CacheResolver (List< long > gamerTags)
 

Static Public Member Functions

static UnityUserDataCache< T > CreateInstance (string name, long ttlMs, CacheResolver resolver)
 

Protected Member Functions

virtual void Resolve ()
 
void PerformScheduleResolve ()
 

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: