[−][src]Struct ignite_rs::cache::Cache
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]
&self,
key: &K,
value: &V
) -> IgniteResult<Option<V>>
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]
&self,
modes: Vec<CachePeekMode>
) -> IgniteResult<i64>
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,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Cache<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Cache<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Cache<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Cache<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,