pub type ImageCache = ImageCache;Aliased Type§
struct ImageCache {
pub capacity: usize,
pub entry_size_limit: usize,
pub max_request_timeout_ms: u64,
pub user_quota_bytes: usize,
pub user_quota_period_seconds: u64,
}Fields§
§capacity: usizeCache size in bytes.
entry_size_limit: usizeMaximum size in bytes for a single image.
max_request_timeout_ms: u64Maximum time in seconds to wait for downloading the image form the original source.
user_quota_bytes: usizeUsers have a cache quota per period. For example: 100MB per day. This is the maximum size in bytes (100MB in bytes).
user_quota_period_seconds: u64Users have a cache quota per period. For example: 100MB per day. This is the period in seconds (1 day in seconds).