Data object to store state values with their keys used by MemoryStateStore
Description
TODO: add description
Constructors
Creates a new instance of the state entry and assigns its values.
publicconstructor(key: string, value: any)
- key: string - a unique key to locate the value.
- value: any - a value to be stored.
Instance methods
getKey
Gets the key to locate the state value.
publicgetKey(): string
- return: string - the value key.
getLastUpdateTime
Gets the last update time.
publicgetLastUpdateTime(): number
- return: number - the timestamp when the value ware stored.
getValue
Gets the sstate value.
publicgetValue(): any
- returns: any - the value object.
setValue
Sets a new state value.
publicsetValue(value: any): void
- value: any - a new cached value.