Struct redis_module::key::RedisKey [−][src]
pub struct RedisKey { /* fields omitted */ }
Implementations
impl RedisKey
[src]
impl RedisKey
[src]pub fn open(ctx: *mut RedisModuleCtx, key: &str) -> RedisKey
[src]
pub fn get_value<T>(
&self,
redis_type: &RedisType
) -> Result<Option<&T>, RedisError>
[src]
&self,
redis_type: &RedisType
) -> Result<Option<&T>, RedisError>
pub fn key_type(&self) -> KeyType
[src]
pub fn is_null(&self) -> bool
[src]
Detects whether the key pointer given to us by Redis is null.
pub fn read(&self) -> Result<Option<String>, RedisError>
[src]
pub fn hash_get(&self, field: &str) -> Result<Option<RedisString>, RedisError>
[src]
pub fn hash_get_multi<'a, A, B>(
&self,
fields: &'a [A]
) -> Result<Option<HMGetResult<'a, A, B>>, RedisError> where
A: Into<Vec<u8>> + Clone,
RedisString: Into<B>,
[src]
&self,
fields: &'a [A]
) -> Result<Option<HMGetResult<'a, A, B>>, RedisError> where
A: Into<Vec<u8>> + Clone,
RedisString: Into<B>,
Returns the values associated with the specified fields in the hash stored at this key.
The result will be None
if the key does not exist.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RedisKey
impl RefUnwindSafe for RedisKey
impl UnwindSafe for RedisKey
impl UnwindSafe for RedisKey