@univerjs-pro/collaboration-client v0.5.0-beta.1 • Docs
Class: LocalCacheService
This service provide caching to the collaboration controller.
Extends
Constructors
new LocalCacheService()
new LocalCacheService(
_configService,
_localStorageService,
_beforeCloseService,
_localeService,
_revisionService): LocalCacheService
Parameters
Parameter | Type |
---|---|
_configService | IConfigService |
_localStorageService | ILocalStorageService |
_beforeCloseService | IBeforeCloseService |
_localeService | LocaleService |
_revisionService | RevisionService |
Returns
Overrides
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:26
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
Methods
disableLocalCache()
disableLocalCache(): void
Returns
void
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:39
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:47
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
enableLocalCache()
enableLocalCache(): void
Returns
void
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:43
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
exhaustSavingTask()
exhaustSavingTask(): Promise<void>
Returns
Promise
<void
>
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:111
loadOfflineData()
loadOfflineData(unitID): Promise<Nullable<IUnitCacheData>>
Parameters
Parameter | Type |
---|---|
unitID | string |
Returns
Promise
<Nullable
<IUnitCacheData
>>
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:51
saveOfflineData()
saveOfflineData(unitID, data): Promise<boolean>
Parameters
Parameter | Type |
---|---|
unitID | string |
data | IUnitCacheData |
Returns
Promise
<boolean
>
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:60
updateOfflineData()
updateOfflineData(
unitID,
type,
awaitingChangeset,
pendingMutations): void
Parameters
Parameter | Type |
---|---|
unitID | string |
type | UniverType |
awaitingChangeset | Nullable <IChangeset > |
pendingMutations | IMutationInfo <object >[] |
Returns
void
Defined in
packages/collaboration-client/src/services/local-cache/local-cache.service.ts:65