Struct rustis::commands::CfInsertOptions
source · pub struct CfInsertOptions { /* private fields */ }
Available on crate feature
redis-bloom
only.Expand description
Options for the cf_insert
command.
Implementations§
source§impl CfInsertOptions
impl CfInsertOptions
sourcepub fn capacity(self, capacity: usize) -> Self
pub fn capacity(self, capacity: usize) -> Self
Specifies the desired capacity of the new filter, if this filter does not exist yet.
If the filter already exists, then this parameter is ignored.
If the filter does not exist yet and this parameter is not specified,
then the filter is created with the module-level default capacity which is 1024
.
See cf_reserve
for more information on cuckoo filter capacities.
Trait Implementations§
source§impl Default for CfInsertOptions
impl Default for CfInsertOptions
source§fn default() -> CfInsertOptions
fn default() -> CfInsertOptions
Returns the “default value” for a type. Read more
source§impl ToArgs for CfInsertOptions
impl ToArgs for CfInsertOptions
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for CfInsertOptions
impl RefUnwindSafe for CfInsertOptions
impl Send for CfInsertOptions
impl Sync for CfInsertOptions
impl Unpin for CfInsertOptions
impl UnwindSafe for CfInsertOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more