pub struct Protocol<S> { /* private fields */ }

Implementations

Creates the ASCII protocol on a stream.

Returns the value for given key as bytes. If the value doesn’t exist, ErrorKind::NotFound is returned.

Returns values for multiple keys in a single call as a HashMap from keys to found values. If a key is not present in memcached it will be absent from returned map.

Get up to limit keys which match the given prefix. Returns a HashMap from keys to found values. This is not part of the Memcached standard, but some servers implement it nonetheless.

Add a key. If the value exists, ErrorKind::AlreadyExists is returned.

Set key to given value and don’t wait for response.

Delete a key and don’t wait for response.

Return the version of the remote server.

Delete all keys from the cache.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.