@@ -97,7 +97,6 @@ This gives a very compact representation of the
9797set's membership with a fixed memory size, regardless of how many items you
9898add. The following example adds some names to a Bloom filter representing
9999a list of users and checks for the presence or absence of users in the list.
100- Note that you must use the ` bf() ` method to access the Bloom filter commands.
101100
102101``` go
103102res1 , err := rdb.BFMAdd (
@@ -134,9 +133,7 @@ fmt.Println(res3) // >>> false
134133< /clients-example >}}-->
135134
136135A Cuckoo filter has similar features to a Bloom filter, but also supports
137- a deletion operation to remove hashes from a set, as shown in the example
138- below. Note that you must use the ` cf() ` method to access the Cuckoo filter
139- commands.
136+ a deletion operation to remove hashes from a set, as shown in the example below.
140137
141138``` go
142139res4 , err := rdb.CFAdd (ctx, " other_users" , " paolo" ).Result ()
@@ -310,10 +307,11 @@ desired range. For example, you can request that the count should
310307stay within 0.1% of the true value and have a 0.05% probability
311308of going outside this limit. The example below shows how to create
312309a Count-min sketch object, add data to it, and then query it.
313- Note that you must use the ` cms() ` method to access the Count-min
314- sketch commands.
315310
316311``` go
312+ // Specify that you want to keep the counts within 0.01
313+ // (1%) of the true value with a 0.005 (0.5%) chance
314+ // of going outside this limit.
317315res16 , err := rdb.CMSInitByProb (ctx, " items_sold" , 0.01 , 0.005 ).Result ()
318316
319317if err != nil {
@@ -391,8 +389,7 @@ maximum values, the quantile of 0.75, and the
391389[ cumulative distribution function] ( https://en.wikipedia.org/wiki/Cumulative_distribution_function )
392390(CDF), which is effectively the inverse of the quantile function. It also
393391shows how to merge two or more t-digest objects to query the combined
394- data set. Note that you must use the ` tdigest() ` method to access the
395- t-digest commands.
392+ data set.
396393
397394``` go
398395res20 , err := rdb.TDigestCreate (ctx, " male_heights" ).Result ()
@@ -511,8 +508,7 @@ The example below adds several different items to a Top-K object
511508that tracks the top three items (this is the second parameter to
512509the ` topk().reserve() ` method). It also shows how to list the
513510top * k* items and query whether or not a given item is in the
514- list. Note that you must use the ` topk() ` method to access the
515- Top-K commands.
511+ list.
516512
517513``` go
518514// Create a TopK filter that keeps track of the top 3 items
0 commit comments