feat: introduce on-disk cache persistance for major nym-api caches (#6302)
This includes: - mixnet contract cache - described nodes cache - nodes annotations cache (performance) those changes include taking some code developed for the purposes of #6277
This commit is contained in:
committed by
GitHub
parent
46b9d5374b
commit
4897cb0ce4
@@ -3,10 +3,11 @@
|
||||
|
||||
use nym_api_requests::models::{DescribedNodeTypeV2, NymNodeDataV2, NymNodeDescriptionV2};
|
||||
use nym_mixnet_contract_common::NodeId;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::HashMap;
|
||||
use std::net::IpAddr;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DescribedNodes {
|
||||
pub(crate) nodes: HashMap<NodeId, NymNodeDescriptionV2>,
|
||||
pub(crate) addresses_cache: HashMap<IpAddr, NodeId>,
|
||||
|
||||
Reference in New Issue
Block a user