Type Alias ImageCache

Source
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: usize

Cache size in bytes.

§entry_size_limit: usize

Maximum size in bytes for a single image.

§max_request_timeout_ms: u64

Maximum time in seconds to wait for downloading the image form the original source.

§user_quota_bytes: usize

Users 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: u64

Users have a cache quota per period. For example: 100MB per day. This is the period in seconds (1 day in seconds).