Trait SessionCache

Source
pub trait SessionCache: Send + Sync {
    // Required methods
    fn put(&self, key: Bytes, value: Bytes);
    fn get(&self, key: Bytes) -> Option<Bytes>;
    fn remove(&self, key: Bytes);
    fn clear(&self);
}
Expand description

A client-side Session cache for the BoringSSL crypto provider.

Required Methods§

Source

fn put(&self, key: Bytes, value: Bytes)

Adds the given value to the session cache.

Source

fn get(&self, key: Bytes) -> Option<Bytes>

Returns the cached session, if it exists.

Source

fn remove(&self, key: Bytes)

Removes the cached session, if it exists.

Source

fn clear(&self)

Removes all entries from the cache.

Implementors§