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

Method constructor

src/values_store.ts:41–43  ·  view source on GitHub ↗

* Creates a new readonly values store * * @param values - Initial session data or null

(values: SessionData | null)

Source from the content-addressed store, hash-verified

39 * @param values - Initial session data or null
40 */
41 constructor(values: SessionData | null) {
42 this.values = values || {}
43 }
44
45 /**
46 * Gets value for a given key

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected