pub struct CacheConfig {
pub balance_ttl: Duration,
pub transaction_ttl: Duration,
pub nft_metadata_ttl: Duration,
pub nft_collection_ttl: Duration,
pub max_entries: usize,
pub enabled: bool,
}Expand description
Cache configuration for different endpoint types.
Fields§
§balance_ttl: DurationTTL for balance data (relatively static)
transaction_ttl: DurationTTL for transaction data (immutable once confirmed)
nft_metadata_ttl: DurationTTL for NFT metadata (mostly static)
nft_collection_ttl: DurationTTL for NFT collections (mostly static)
max_entries: usizeMaximum number of cached entries
enabled: boolEnable caching
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheConfig
impl Debug for CacheConfig
Auto Trait Implementations§
impl Freeze for CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more