[−][src]Struct radish_database::Storage
Methods
impl Storage
[src]
pub fn extract(arg: Option<Value>) -> Result<Value, String>
[src]
pub fn extract_buffer(arg: Option<Value>) -> Result<Vec<u8>, String>
[src]
pub fn extract_string(arg: Option<Value>) -> Result<String, String>
[src]
pub fn extract_key(arg: Option<Value>) -> Result<Key, String>
[src]
pub fn extract_integer(arg: Option<Value>) -> Result<i64, String>
[src]
pub fn extract_unsigned_integer(arg: Option<Value>) -> Result<u64, String>
[src]
pub fn extract_float(arg: Option<Value>) -> Result<f64, String>
[src]
pub fn extract_index(arg: Option<Value>) -> Result<usize, String>
[src]
pub fn extract_bit(arg: Option<Value>) -> Result<bool, String>
[src]
impl Storage
[src]
pub async fn strings_append<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_get<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_set<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_setex_impl<'_>(
&'_ mut self,
key: Key,
timepoint: SystemTime,
value: Vec<u8>
) -> ExecResult
[src]
&'_ mut self,
key: Key,
timepoint: SystemTime,
value: Vec<u8>
) -> ExecResult
pub async fn strings_setex<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_psetex<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_setnx<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_getset<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_len<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_incrby<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_decrby<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_incrby_float<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_bitcount<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_mget<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_mset<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_bitop<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_setbit<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_getbit<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_get_range<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn strings_set_range<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
impl Storage
[src]
pub async fn expire_key_at<'_, '_>(
&'_ mut self,
key: &'_ Key,
timepoint: SystemTime
)
[src]
&'_ mut self,
key: &'_ Key,
timepoint: SystemTime
)
impl Storage
[src]
pub async fn list_len<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_lpush<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_rpush<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_lpushx<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_rpushx<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_lpop<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_rpop<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_rem<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_set<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_index<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_range<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_insert<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn list_trim<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn _list_rpop_lpush<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
impl Storage
[src]
pub fn make_container(cnt: Container) -> Arc<Mutex<Container>>
[src]
pub fn make_container_with<F: FnMut() -> Container>(
factory: F
) -> Arc<Mutex<Container>>
[src]
factory: F
) -> Arc<Mutex<Container>>
pub async fn try_get_container<'_, '_>(
&'_ self,
key: &'_ Key
) -> Option<Arc<Mutex<Container>>>
[src]
&'_ self,
key: &'_ Key
) -> Option<Arc<Mutex<Container>>>
pub async fn get_container<'_, F: FnMut() -> Container>(
&'_ self,
key: Key,
factory: F
) -> Arc<Mutex<Container>>
[src]
&'_ self,
key: Key,
factory: F
) -> Arc<Mutex<Container>>
pub async fn try_get_containers<'_, '_>(
&'_ self,
keys: &'_ Vec<Key>
) -> Vec<Option<Arc<Mutex<Container>>>>
[src]
&'_ self,
keys: &'_ Vec<Key>
) -> Vec<Option<Arc<Mutex<Container>>>>
pub async fn get_containers<'_, F: FnMut() -> Container>(
&'_ self,
__arg1: Vec<Key>,
__arg2: F
) -> Vec<Arc<Mutex<Container>>>
[src]
&'_ self,
__arg1: Vec<Key>,
__arg2: F
) -> Vec<Arc<Mutex<Container>>>
pub async fn lock_all<'a, T: 'a>(
__arg0: impl Iterator<Item = &'a Mutex<T>>,
__arg1: impl Iterator<Item = Option<&'a Mutex<T>>>
) -> (Vec<MutexGuard<'a, T>>, Vec<Option<MutexGuard<'a, T>>>)
[src]
__arg0: impl Iterator<Item = &'a Mutex<T>>,
__arg1: impl Iterator<Item = Option<&'a Mutex<T>>>
) -> (Vec<MutexGuard<'a, T>>, Vec<Option<MutexGuard<'a, T>>>)
pub async fn keys_keys<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_exists<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_now<'_>(&'_ self, _args: Arguments) -> ExecResult
[src]
pub async fn keys_pnow<'_>(&'_ self, _args: Arguments) -> ExecResult
[src]
pub async fn keys_del<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_rename<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_type<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_pttl<'_>(&'_ mut self, args: Arguments) -> ExecResult
[src]
pub async fn keys_ttl<'_>(&'_ mut self, args: Arguments) -> ExecResult
[src]
pub async fn keys_expire<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_expire_at<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_pexpire<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_pexpire_at<'_>(&'_ mut self, __arg1: Arguments) -> ExecResult
[src]
pub async fn keys_check_expirations<'_>(&'_ self)
[src]
pub async fn keys_scan<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
impl Storage
[src]
pub async fn hash_set<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_set_nx<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_del<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_get<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_mget<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_get_all<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_exists<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_keys<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_values<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_len<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_strlen<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_incrby<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_incrbyfloat<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn hash_scan<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
impl Storage
[src]
pub async fn set_card<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_members<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_is_member<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_add<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_rem<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_pop<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_move<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_diff<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_diff_store<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_inter<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_inter_store<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_union<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_union_store<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn _set_rand_member<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
pub async fn set_scan<'_>(&'_ self, __arg1: Arguments) -> ExecResult
[src]
impl Storage
[src]
pub fn new() -> Self
[src]
pub fn set_expire_awaker<A>(&mut self, a: A) where
A: FnMut(SystemTime) + Send + 'static,
[src]
A: FnMut(SystemTime) + Send + 'static,
pub async fn unimplemented<'_>(&'_ self) -> ExecResult
[src]
pub async fn execute<'_>(&'_ mut self, command: Command) -> Value
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl !UnwindSafe for Storage
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,