[][src]Struct ignite_rs::cache::Cache

pub struct Cache<K: WritableType + ReadableType, V: WritableType + ReadableType> {
    pub _name: String,
    // some fields omitted
}

Ignite key-value cache. This cache is strongly typed and reading/writing some other types leads to errors. All caches created from the single IgniteClient shares the common TCP connection

Fields

_name: String

Implementations

impl<K: WritableType + ReadableType, V: WritableType + ReadableType> Cache<K, V>[src]

pub fn get(&self, key: &K) -> IgniteResult<Option<V>>[src]

pub fn get_all(&self, keys: &[K]) -> IgniteResult<Vec<(Option<K>, Option<V>)>>[src]

pub fn put(&self, key: &K, value: &V) -> IgniteResult<()>[src]

pub fn put_all(&self, pairs: &[(K, V)]) -> IgniteResult<()>[src]

pub fn contains_key(&self, key: &K) -> IgniteResult<bool>[src]

pub fn contains_keys(&self, keys: &[K]) -> IgniteResult<bool>[src]

pub fn get_and_put(&self, key: &K, value: &V) -> IgniteResult<Option<V>>[src]

pub fn get_and_replace(&self, key: &K, value: &V) -> IgniteResult<Option<V>>[src]

pub fn get_and_remove(&self, key: &K) -> IgniteResult<Option<V>>[src]

pub fn put_if_absent(&self, key: &K, value: &V) -> IgniteResult<bool>[src]

pub fn get_and_put_if_absent(
    &self,
    key: &K,
    value: &V
) -> IgniteResult<Option<V>>
[src]

pub fn replace(&self, key: &K, value: &V) -> IgniteResult<bool>[src]

pub fn replace_if_equals(&self, key: &K, old: &V, new: &V) -> IgniteResult<bool>[src]

pub fn clear(&self) -> IgniteResult<()>[src]

pub fn clear_key(&self, key: &K) -> IgniteResult<()>[src]

pub fn clear_keys(&self, keys: &[K]) -> IgniteResult<()>[src]

pub fn remove_key(&self, key: &K) -> IgniteResult<bool>[src]

pub fn remove_if_equals(&self, key: &K, value: &V) -> IgniteResult<bool>[src]

pub fn get_size(&self) -> IgniteResult<i64>[src]

pub fn get_size_peek_mode(&self, mode: CachePeekMode) -> IgniteResult<i64>[src]

pub fn get_size_peek_modes(
    &self,
    modes: Vec<CachePeekMode>
) -> IgniteResult<i64>
[src]

pub fn remove_keys(&self, keys: &[K]) -> IgniteResult<()>[src]

pub fn remove_all(&self) -> IgniteResult<()>[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for Cache<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for Cache<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for Cache<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for Cache<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for Cache<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.