Struct humphrey_server::server::cache::Cache[][src]

pub struct Cache {
    pub cache_limit: usize,
    // some fields omitted
}
Expand description

Represents the server’s cache.

Fields

cache_limit: usize

Implementations

Attempts to get an item from the cache. If the item is not present, or it is stale, returns None.

Sets an item in the cache. Overwrites older versions if needed.

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.