MCPcopy Create free account
hub / github.com/adonisjs/session / update

Method update

src/values_store.ts:249–252  ·  view source on GitHub ↗

* Overwrites existing store data with new values * * @param values - New values to replace existing data * * @example * store.update({ username: 'jane', theme: 'light' })

(values: { [key: string]: any })

Source from the content-addressed store, hash-verified

247 * store.update({ username: 'jane', theme: 'light' })
248 */
249 update(values: { [key: string]: any }): void {
250 this.#modified = true
251 this.values = values
252 }
253
254 /**
255 * Merges values with existing store data

Callers 5

clearMethod · 0.95
initiateMethod · 0.80
touchMethod · 0.80
untagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected