miniproto.peers.PeerCache
miniproto.peers.PeerCache
Section titled “miniproto.peers.PeerCache”PeerCache(config: ClientConfig, storage: SessionStorage, invoker: PeerInvoker) -> NoneRevision-aware session peer cache with local and remote resolution paths.
Bind client configuration, mutable session storage, and raw invocation.
Parameters:
- config (
ClientConfig) – Client configuration whose DC identifies loaded session state. - storage (
SessionStorage) – Session storage supplying durable auth and peer domains. - invoker (
PeerInvoker) – Raw Telegram request callable for remote peer resolution.