MCPcopy Create free account
hub / github.com/MALSync/MALSync / setOffset

Method setOffset

src/_provider/Search/searchClass.ts:109–115  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

107 }
108
109 setOffset(offset: number) {
110 if (this.state) {
111 if (this.state.offset !== offset) this.changed = true;
112 this.state.offset = offset;
113 }
114 this.setCache(this.state);
115 }
116
117 async getCachedOffset(): Promise<number> {
118 this.state = await this.getCache();

Callers

nothing calls this directly

Calls 1

setCacheMethod · 0.95

Tested by

no test coverage detected