Provides persistent attributes retrieved and cached from persistence adapter, provide false to useSessionCache to ignore values cached from previous invocations.
Parameters
Optional useSessionCache: boolean
Optional defaultAttributes: object
[key: string]: any
Returns Promise<object>
getRequestAttributes
getRequestAttributes(): object
Provides request attributes for the request life cycle.
Returns object
[key: string]: any
getSessionAttributes
getSessionAttributes<T>(): T
Provides session attributes extracted from request envelope.
Type parameters
T
Returns T
savePersistentAttributes
savePersistentAttributes(): Promise<void>
Save persistent attributes to the persistence layer if a persistence adapter is provided.
An interface handling three level attributes: request, session and persistence.