pub struct CfReserveOptions { /* private fields */ }
Available on crate feature
redis-bloom
only.Expand description
Options for the cf_reserve
command.
Implementations§
Source§impl CfReserveOptions
impl CfReserveOptions
Sourcepub fn bucketsize(self, bucketsize: usize) -> Self
pub fn bucketsize(self, bucketsize: usize) -> Self
Number of items in each bucket.
A higher bucket size value improves the fill rate but also causes a higher error rate and slightly slower performance. The default value is 2.
Sourcepub fn maxiterations(self, maxiterations: usize) -> Self
pub fn maxiterations(self, maxiterations: usize) -> Self
Number of attempts to swap items between buckets before declaring filter as full and creating an additional filter.
A low value is better for performance and a higher number is better for filter fill rate. The default value is 20.
Trait Implementations§
Source§impl Default for CfReserveOptions
impl Default for CfReserveOptions
Source§fn default() -> CfReserveOptions
fn default() -> CfReserveOptions
Returns the “default value” for a type. Read more
Source§impl ToArgs for CfReserveOptions
impl ToArgs for CfReserveOptions
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 CfReserveOptions
impl RefUnwindSafe for CfReserveOptions
impl Send for CfReserveOptions
impl Sync for CfReserveOptions
impl Unpin for CfReserveOptions
impl UnwindSafe for CfReserveOptions
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