pub struct CacheConfig {
pub enabled: bool,
pub instrument_ttl_secs: u64,
pub instrument_max_entries: u64,
pub instrument_id_ttl_secs: u64,
pub instrument_id_max_entries: u64,
pub index_ttl_secs: u64,
pub index_max_entries: u64,
pub futures_ttl_secs: u64,
pub futures_max_entries: u64,
pub enrichment_batch_size: usize,
}Expand description
Identity/metadata caches for symbol ↔ ID resolution.
Financial data is never cached (quotes, prices, positions, orders, etc.). Only immutable lookups: instrument metadata, index instruments, futures contracts, and the singleton futures account ID.
Set enabled = false to bypass all caches and hit upstream on every call.
Fields§
§enabled: boolMaster switch. When false, every cached wrapper falls through to the
underlying resolver and nothing is inserted into the caches.
instrument_ttl_secs: u64Time-to-live for the symbol → instrument cache, in seconds.
instrument_max_entries: u64Maximum entries in the symbol → instrument cache.
instrument_id_ttl_secs: u64Time-to-live for the uuid → symbol reverse map, in seconds.
instrument_id_max_entries: u64Maximum entries in the uuid → symbol reverse map.
index_ttl_secs: u64Time-to-live for the symbol → index instrument cache, in seconds.
index_max_entries: u64Maximum entries in the symbol → index instrument cache.
futures_ttl_secs: u64Time-to-live for the symbol → futures contract cache, in seconds.
futures_max_entries: u64Maximum entries in the symbol → futures contract cache.
enrichment_batch_size: usizeBatch size for resolve_symbols chunked ?ids= query-string requests.
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more