@univerjs-pro/collaboration-client v0.5.4


Interface: ILocalCacheService

Defined in: packages/collaboration-client/src/services/local-cache/local-cache.service.ts:14

Properties

PropertyTypeDefined in
saveTaskMapMap<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

ParameterType
unitIDstring

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

ParameterType
unitIDstring
dataIUnitCacheData

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

ParameterType
unitIDstring
typeUniverType
awaitingChangesetNullable<IChangeset>
pendingMutationsIMutationInfo[]

Returns

void