Struct bmemcached::MemcachedClient [] [src]

pub struct MemcachedClient {
    // some fields omitted
}

Struct that holds all connections and proxy commands to the right server based on the key

Methods

impl MemcachedClient

fn new<A: ToSocketAddrs>(addrs: Vec<A>, connections_per_addr: u8) -> Result<MemcachedClient, BMemcachedError>

fn set<K, V>(&self, key: K, value: V, time: u32) -> Result<(), BMemcachedError> where K: AsRef<[u8]>, V: ToMemcached

fn add<K, V>(&self, key: K, value: V, time: u32) -> Result<(), BMemcachedError> where K: AsRef<[u8]>, V: ToMemcached

fn replace<K, V>(&self, key: K, value: V, time: u32) -> Result<(), BMemcachedError> where K: AsRef<[u8]>, V: ToMemcached

fn get<K, V>(&self, key: K) -> Result<V, BMemcachedError> where K: AsRef<[u8]>, V: FromMemcached

fn delete<K>(&self, key: K) -> Result<(), BMemcachedError> where K: AsRef<[u8]>

fn increment<K>(&self, key: K, amount: u64, initial: u64, time: u32) -> Result<u64, BMemcachedError> where K: AsRef<[u8]>

fn decrement<K>(&self, key: K, amount: u64, initial: u64, time: u32) -> Result<u64, BMemcachedError> where K: AsRef<[u8]>