@univerjs-pro/collaboration-client v0.5.4
Interface: ILocalCacheService
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:14
Properties
Property | Type | Defined in |
---|---|---|
saveTaskMap | Map <string , number > | packages/collaboration-client/src/services/local-cache/local-cache.service.ts:26 |
Methods
disableLocalCache()
disableLocalCache(): void
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:23
Returns
void
enableLocalCache()
enableLocalCache(): void
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:24
Returns
void
exhaustSavingTask()
exhaustSavingTask(): Promise<void>
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:25
Returns
Promise
<void
>
loadOfflineData()
loadOfflineData(unitID): Promise<Nullable<IUnitCacheData>>
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:15
Parameters
Parameter | Type |
---|---|
unitID | string |
Returns
Promise
<Nullable
<IUnitCacheData
>>
saveOfflineData()
saveOfflineData(unitID, data): Promise<boolean>
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:16
Parameters
Parameter | Type |
---|---|
unitID | string |
data | IUnitCacheData |
Returns
Promise
<boolean
>
updateOfflineData()
updateOfflineData(
unitID,
type,
awaitingChangeset,
pendingMutations): void
Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:17
Parameters
Parameter | Type |
---|---|
unitID | string |
type | UniverType |
awaitingChangeset | Nullable <IChangeset > |
pendingMutations | IMutationInfo [] |
Returns
void