MCPcopy
hub / github.com/tj/connect-redis / getAllKeys

Method getAllKeys

index.ts:167–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 private async getAllKeys() {
168 let pattern = this.prefix + "*"
169 let set = new Set<string>()
170 for await (let keys of this.scanIterator(pattern, this.scanCount)) {
171 for (let key of keys) {
172 set.add(key)
173 }
174 }
175 return set.size > 0 ? Array.from(set) : []
176 }
177
178 private scanIterator(match: string, count: number) {
179 let client = this.client

Callers 4

clearMethod · 0.95
lengthMethod · 0.95
idsMethod · 0.95
allMethod · 0.95

Calls 1

scanIteratorMethod · 0.95

Tested by

no test coverage detected