Struct redis_module::key::RedisKeyWritable [−][src]
pub struct RedisKeyWritable { /* fields omitted */ }Expand description
RedisKeyWritable is an abstraction over a Redis key that allows read and
write operations.
Implementations
Detects whether the value stored in a Redis key is empty.
Note that an empty key can be reliably detected by looking for a null as you open the key in read mode, but when asking for write Redis returns a non-null pointer to allow us to write to even an empty key, so we have to check the key’s value instead.
pub fn hash_get_multi<'a, A, B>(
&self,
fields: &'a [A]
) -> Result<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<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.
pub fn open_with_redis_string(
ctx: *mut RedisModuleCtx,
key: *mut RedisModuleString
) -> RedisKeyWritable[src]Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RedisKeyWritableimpl !Send for RedisKeyWritableimpl !Sync for RedisKeyWritableimpl Unpin for RedisKeyWritableimpl UnwindSafe for RedisKeyWritable