OnixS C++ CME MDP Conflated TCP Handler  1.1.0
API Documentation
Memory-based Session Storage

Memory-based session storage is typically used to maintain a high-performance Conflated TCP 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::CME::ConflatedTCP::Session::Session constructor has to be set to the OnixS::CME::ConflatedTCP::SessionStorageType::MemoryBased value.

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


Session session(sessionSettings, MarketSegmentId, ONIXS_CONFLATEDTCP_NULLPTR, ONIXS_CONFLATEDTCP_NULLPTR, SessionStorageType::MemoryBased);