Flush Cache
Dump Theo Cache
The DumpTheoCache message will cause the server to dump the entire cache into a file located in the log directory on the server. This is a debugging tool that OptionsCity support can then examine in order to resolve problems or to verify what values are in the cache. It takes no parameters and provides no ACK.
Flushing Theo Cache
When flushing the theo cache, all values for the instrument(s) specified will be removed from the cache. No theoretical value will be available for these instruments. When a value is requested from the system, a new value will be recalculated. In the case of the TheoProvider model, a value will need to be pushed. The cache can be flushed by instrument (Flush), by month (FlushMonth), by symbol (FlushSymbol) and all (FlushAll)
FlushAck
This notification is sent to the client once a Flush message has been successfully processed and all theoretical values for the specified instrument have been purged from the cache. The value for value will be the ID that supplied already by the client's corresponding server-bound Flush message.
Syntax
FlushAck <MessageID>
Example
FlushAck 90210
Flush All Theos
The FlushAll message will cause us to purge all entries in our cache and therefore have no valid theoretical values for any instrument.
Syntax
FlushAll <MessageID>
The value for MessageID is a client-defined long and will be returned in the FlushAllAck notification. The InstrumentID is the instrument whose theoretical values will be invalidated.
Example
FlushAll 1
FlushAllAck 1
Flush Symbol Theos
The FlushSymbol message will cause us to purge all entries in our cache for all instruments of a specific symbol. Each entry at every underlying price for the contract will be invalidated.
Syntax
FlushSymbol <MessageID> <Symbol>
Example
FlushSymbol 2 ON
FlushAck 2
Flush Instrument Month Theos
The FlushMonth message will cause the server to purge all entries in the theoretical cache for a specific instrument month. Each entry at every underlying price for the instrument will be invalidated.
Syntax
FlushMonth <MessageID> <MonthID>
Example
FlushMonth 3 7626073
FlushMonthAck 3
Flush Instrument Theos
The Flush message will cause the server to purge all entries in the theoretical cache for a specific instrument. Each entry at every underlying price for the instrument will be invalidated.
Syntax
Flush <MessageID> <InstrumentID>
Example
Flush 4 15801133
FlushAck 4