pub struct RedisKeyWritable { /* private fields */ }
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.

Returns the values associated with the specified fields in the hash stored at this key.

Panics

Will panic if RedisModule_DeleteKey is missing in redismodule.h

Panics

Will panic if RedisModule_KeyType is missing in redismodule.h

Panics

Will panic if RedisModule_ModuleTypeGetValue is missing in redismodule.h

Panics

Will panic if RedisModule_ModuleTypeSetValue is missing in redismodule.h

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.