OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
Memory-based Session Storage

Memory-based session storage is typically used to maintain a high-performance session when the persisting of a session state and messages to the file system is not required.

Switching to Memory-based Session Storage

To create such a session, the storageType parameter in the OnixS::ICE::BOE::Session::Session constructor has to be set to the OnixS::ICE::BOE::SessionStorageType::MemoryBased value.

For these purposes, storageType parameter of the OnixS::ICE::BOE::Session::Session constructor is available. Once OnixS::ICE::BOE::SessionStorageType::MemoryBased value will be specified as value for the storageType parameter, session-related data will be logged into memory.

Example

Session session(SessionType::BUS, settings, &listener, SessionStorageType::MemoryBased);