Cache
Index
Constructors
constructor
Returns Cache
Methods
staticclearCache
Parameters
optionalid: string
Returns Promise<void>
staticclearPendingChanges
Clear the list of pending changes without applying or syncing them.
Returns Promise<void>
staticgetCacheEntriesList
Return the list of cache ids saved in previous execute or observe
Returns Observable<string[]>
staticgetPendingChanges
Return a string containing all changes and there related files. This method can be used to “backup” pending changes at any point in time before a synchronisation
Returns Promise<string>
staticgetProcessingErrors
Return an Observable which emit a new value for each Error encountered when processing data results asynchronously
Returns Observable<boolean>
statichasPendingChanges
Return an observable which gets TRUE if one or more changes must be synced with remoted database
Returns Observable<boolean>
staticisProcessing
Return an Observable which gets TRUE if the Cache is processing some queries to keep the offline database up-to-date
Returns Observable<boolean>
staticloadPendingChanges
Load the given pending changes into the local offline database
Parameters
data: string
Returns Promise<void>
staticsynchroniseChanges
Sync the local changes made offline with the online data source Returns an observable in the form [nbChanges, nbSyncedChanges]
Returns Observable<[number, number]>
Clear the cached data related to this cache id. If not cache id provided => clear all cache ids