MCPcopy
hub / github.com/tinyhttp/tinyhttp / save

Method save

packages/session/src/index.ts:133–143  ·  view source on GitHub ↗
(cb?: (err?: any) => void)

Source from the content-addressed store, hash-verified

131 }
132
133 save(cb?: (err?: any) => void): this {
134 this.store.set(
135 this.id,
136 this.data(),
137 cb ||
138 function () {
139 return
140 }
141 )
142 return this
143 }
144
145 reload(cb?: (err?: any) => void): this {
146 this.store.get(this.id, (err, sess) => {

Callers 4

installPackagesFunction · 0.80
SessionManagerFunction · 0.80
index.tsFile · 0.80
getSession.test.tsFile · 0.80

Calls 2

dataMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected