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 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]
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]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.