pip_services3_components.state.StateEntry module

class pip_services3_components.state.StateEntry.StateEntry(key: str, value: Any)

Bases: object

Data object to store state values with their keys used by MemoryStateStore

get_key()str

Gets the key to locate the state value.

Returns

the value key.

get_last_update_time()int

Gets the last update time.

Returns

the timestamp when the value ware stored.

get_value()

Gets the sstate value.

Returns

the value object.

set_value(value: Any)

Sets a new state value.

Parameters

value – a new cached value.