You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: QUICK_START.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ Follow these steps to set up, build, and run the Valkey server with the valkey-b
4
4
5
5
## Step 1: Install Valkey and valkey-bloom
6
6
7
-
1.Build Valkey from source by following the instructions [here](https://github.com/valkey-io/valkey?tab=readme-ov-file#building-valkey-using-makefile). Make sure to use Valkey version 8.0 or above.
7
+
1.Follow the [instructions to build Valkey from source](https://github.com/valkey-io/valkey?tab=readme-ov-file#building-valkey-using-makefile). Make sure to use Valkey version 8.0 or above.
8
8
9
-
2.Build the valkey-bloom module from source by following the instructions [here](https://github.com/valkey-io/valkey-bloom/blob/unstable/README.md#build-instructions).
9
+
2.Follow the [instructions to build the valkey-bloom module from source](https://github.com/valkey-io/valkey-bloom/blob/unstable/README.md#build-instructions).
10
10
11
11
## Step 2: Run the Valkey Server with valkey-bloom
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# valkey-bloom
2
2
3
-
Valkey-Bloom (BSD-3-Clause) is a Rust based Valkey-Module which brings a Bloom Filter (Module) data type into Valkey and supports verions >= 8.0. With this, users can create bloom filters (space efficient probabilistic data structures) to add elements, check whether elements exists, auto scale their filters, customize bloom filter properties, perform RDB Save and load operations, etc.
3
+
Valkey-Bloom (BSD-3-Clause) is a Rust based Valkey-Module which brings a Bloom Filter (Module) data type into Valkey and supports versions >= 8.0. With this, users can create bloom filters (space efficient probabilistic data structures) to add elements, check whether elements exists, auto scale their filters, customize bloom filter properties, perform RDB Save and load operations, etc.
4
4
5
5
Valkey-Bloom is built using `bloomfilter::Bloom` (https://crates.io/crates/bloomfilter which has a BSD-2-Clause license).
logging::log_warning(format!("{}: Cannot load bloomfltr data type of version {} because it is higher than the loaded module's bloomfltr supported version {}",MODULE_NAME, encver,BLOOM_TYPE_ENCODING_VERSION).as_str());
60
+
logging::log_warning(format!("{}: Cannot load bloomfltr data type of version {} because it is greater than the loaded module's bloomfltr supported version {}",MODULE_NAME, encver,BLOOM_TYPE_ENCODING_VERSION).as_str());
/// Return the false postive rate of the bloom object.
276
+
/// Return the false positive rate of the bloom object.
277
277
pubfnfp_rate(&self) -> f64{
278
278
self.fp_rate
279
279
}
@@ -490,7 +490,7 @@ impl BloomObject {
490
490
/// * `validate_scale_to` - the capacity we check to see if it can scale to. If this method is called from BF.INFO this is set as -1 as we
491
491
/// want to check the maximum size we could scale up till
492
492
/// * `tightening_ratio` - The tightening ratio of the object
493
-
/// * `expansion` - The expanison rate of the object
493
+
/// * `expansion` - The expansion rate of the object
494
494
///
495
495
/// # Returns
496
496
/// * i64 - The maximum capacity that can be reached if called from BF.INFO. If called from BF.INSERT the size it reached when it became greater than `validate_scale_to`
@@ -645,12 +645,12 @@ impl BloomFilter {
645
645
self.bloom.seed()
646
646
}
647
647
648
-
/// Return the numer of items in the BloomFilter.
648
+
/// Return the number of items in the BloomFilter.
649
649
pubfnnum_items(&self) -> i64{
650
650
self.num_items
651
651
}
652
652
653
-
/// Return the capcity of the BloomFilter - number of items that can be added to it.
653
+
/// Return the capacity of the BloomFilter - number of items that can be added to it.
654
654
pubfncapacity(&self) -> i64{
655
655
self.capacity
656
656
}
@@ -761,7 +761,7 @@ mod tests {
761
761
Ok(1) => {
762
762
ifletSome(err) = expected_error {
763
763
panic!(
764
-
"Expected error on the bloom object during during item add: {:?}",
764
+
"Expected error on the bloom object during item add: {:?}",
765
765
err
766
766
);
767
767
}
@@ -1253,7 +1253,7 @@ mod tests {
1253
1253
1254
1254
#[test]
1255
1255
fntest_vec_capacity_matches_size_calculations(){
1256
-
// This unit test is designed to make sure out calculations with capcity will always match the correct vec capacity
1256
+
// This unit test is designed to make sure out calculations with capacity will always match the correct vec capacity
0 commit comments