Skip to main content

Module cache

Module cache 

Source
Expand description

Configures cache capacities and space hierarchy retention.

Capacity settings cover RocksDB block caches and the in-memory state cache. Space hierarchy settings bound how long cached room summaries remain valid.

Re-exportsยง

use serde::Deserialize; ๐Ÿ”’
use serde::Deserialize; ๐Ÿ”’
use tuwunel_macros::config_example_generator; ๐Ÿ”’
use super::parallelism_scaled_u32; ๐Ÿ”’

Structsยง

Cache
Cache sizes
SpaceHierarchy
Space hierarchy cache lifetime

Constantsยง

TUWUNEL_CONFIG_SECTION_CACHE ๐Ÿ”’
TUWUNEL_CONFIG_SECTION_SPACEHIERARCHY ๐Ÿ”’

Functionsยง

default_auth_chain_capacity ๐Ÿ”’
default_capacity_modifier ๐Ÿ”’
default_eventid_backoff_capacity ๐Ÿ”’
default_eventid_pdu_capacity ๐Ÿ”’
default_eventidshort_capacity ๐Ÿ”’
default_mediaid_lazycontent_capacity ๐Ÿ”’
default_pdu_capacity ๐Ÿ”’
default_resolver_capacity ๐Ÿ”’
default_servername_status_capacity ๐Ÿ”’
default_servernameevent_data_capacity ๐Ÿ”’
default_shorteventid_capacity ๐Ÿ”’
default_shortstatekey_capacity ๐Ÿ”’
default_stateinfo_capacity ๐Ÿ”’
default_statekeyshort_capacity ๐Ÿ”’
default_ttl_max ๐Ÿ”’
default_ttl_min ๐Ÿ”’