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

Method destroy

index.ts:88–96  ·  view source on GitHub ↗
(sid: string, cb?: Callback)

Source from the content-addressed store, hash-verified

86 }
87
88 async destroy(sid: string, cb?: Callback) {
89 let key = this.prefix + sid
90 try {
91 await this.client.del([key])
92 return optionalCb(null, null, cb)
93 } catch (err) {
94 return optionalCb(err, null, cb)
95 }
96 }
97
98 async clear(cb?: Callback) {
99 try {

Callers 3

setMethod · 0.95
index_test.tsFile · 0.80
lifecycleTestFunction · 0.80

Calls 1

optionalCbFunction · 0.85

Tested by

no test coverage detected