@@ -174,7 +174,7 @@ def create(
174
174
):
175
175
"""
176
176
Create a new Cuckoo Filter `key` an initial `capacity` items.
177
- For more information see `CF.RESERVE <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfreserve >`_.
177
+ For more information see `CF.RESERVE <https://redis.io/commands/cf.reserve >`_.
178
178
""" # noqa
179
179
params = [key, capacity]
180
180
self.append_expansion(params, expansion)
@@ -185,7 +185,7 @@ def create(
185
185
def add(self, key, item):
186
186
"""
187
187
Add an `item` to a Cuckoo Filter `key`.
188
- For more information see `CF.ADD <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfadd >`_.
188
+ For more information see `CF.ADD <https://redis.io/commands/cf.add >`_.
189
189
""" # noqa
190
190
params = [key, item]
191
191
return self.execute_command(CF_ADD, *params)
@@ -194,7 +194,7 @@ def addnx(self, key, item):
194
194
"""
195
195
Add an `item` to a Cuckoo Filter `key` only if item does not yet exist.
196
196
Command might be slower that `add`.
197
- For more information see `CF.ADDNX <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfaddnx >`_.
197
+ For more information see `CF.ADDNX <https://redis.io/commands/cf.addnx >`_.
198
198
""" # noqa
199
199
params = [key, item]
200
200
return self.execute_command(CF_ADDNX, *params)
@@ -204,7 +204,7 @@ def insert(self, key, items, capacity=None, nocreate=None):
204
204
Add multiple `items` to a Cuckoo Filter `key`, allowing the filter
205
205
to be created with a custom `capacity` if it does not yet exist.
206
206
`items` must be provided as a list.
207
- For more information see `CF.INSERT <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfinsert >`_.
207
+ For more information see `CF.INSERT <https://redis.io/commands/cf.insert >`_.
208
208
""" # noqa
209
209
params = [key]
210
210
self.append_capacity(params, capacity)
@@ -217,7 +217,7 @@ def insertnx(self, key, items, capacity=None, nocreate=None):
217
217
Add multiple `items` to a Cuckoo Filter `key` only if they do not exist yet,
218
218
allowing the filter to be created with a custom `capacity` if it does not yet exist.
219
219
`items` must be provided as a list.
220
- For more information see `CF.INSERTNX <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfinsertnx >`_.
220
+ For more information see `CF.INSERTNX <https://redis.io/commands/cf.insertnx >`_.
221
221
""" # noqa
222
222
params = [key]
223
223
self.append_capacity(params, capacity)
@@ -228,23 +228,23 @@ def insertnx(self, key, items, capacity=None, nocreate=None):
228
228
def exists(self, key, item):
229
229
"""
230
230
Check whether an `item` exists in Cuckoo Filter `key`.
231
- For more information see `CF.EXISTS <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfexists >`_.
231
+ For more information see `CF.EXISTS <https://redis.io/commands/cf.exists >`_.
232
232
""" # noqa
233
233
params = [key, item]
234
234
return self.execute_command(CF_EXISTS, *params)
235
235
236
236
def delete(self, key, item):
237
237
"""
238
238
Delete `item` from `key`.
239
- For more information see `CF.DEL <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfdel >`_.
239
+ For more information see `CF.DEL <https://redis.io/commands/cf.del >`_.
240
240
""" # noqa
241
241
params = [key, item]
242
242
return self.execute_command(CF_DEL, *params)
243
243
244
244
def count(self, key, item):
245
245
"""
246
246
Return the number of times an `item` may be in the `key`.
247
- For more information see `CF.COUNT <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfcount >`_.
247
+ For more information see `CF.COUNT <https://redis.io/commands/cf.count >`_.
248
248
""" # noqa
249
249
params = [key, item]
250
250
return self.execute_command(CF_COUNT, *params)
@@ -258,7 +258,7 @@ def scandump(self, key, iter):
258
258
The first time this command is called, the value of `iter` should be 0.
259
259
This command will return successive (iter, data) pairs until
260
260
(0, NULL) to indicate completion.
261
- For more information see `CF.SCANDUMP <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfscandump >`_.
261
+ For more information see `CF.SCANDUMP <https://redis.io/commands/cf.scandump >`_.
262
262
""" # noqa
263
263
params = [key, iter]
264
264
return self.execute_command(CF_SCANDUMP, *params)
@@ -269,7 +269,7 @@ def loadchunk(self, key, iter, data):
269
269
270
270
This command will overwrite any Cuckoo filter stored under key.
271
271
Ensure that the Cuckoo filter will not be modified between invocations.
272
- For more information see `CF.LOADCHUNK <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfloadchunk >`_.
272
+ For more information see `CF.LOADCHUNK <https://redis.io/commands/cf.loadchunk >`_.
273
273
""" # noqa
274
274
params = [key, iter, data]
275
275
return self.execute_command(CF_LOADCHUNK, *params)
@@ -278,7 +278,7 @@ def info(self, key):
278
278
"""
279
279
Return size, number of buckets, number of filter, number of items inserted,
280
280
number of items deleted, bucket size, expansion rate, and max iteration.
281
- For more information see `CF.INFO <https://oss. redis.com/redisbloom/master/Cuckoo_Commands/#cfinfo >`_.
281
+ For more information see `CF.INFO <https://redis.io/commands/cf.info >`_.
282
282
""" # noqa
283
283
return self.execute_command(CF_INFO, key)
284
284
@@ -290,15 +290,15 @@ def reserve(self, key, k, width, depth, decay):
290
290
"""
291
291
Create a new Top-K Filter `key` with desired probability of false
292
292
positives `errorRate` expected entries to be inserted as `size`.
293
- For more information see `TOPK.RESERVE <https://oss. redis.com/redisbloom/master/TopK_Commands/#topkreserve >`_.
293
+ For more information see `TOPK.RESERVE <https://redis.io/commands/topk.reserve >`_.
294
294
""" # noqa
295
295
params = [key, k, width, depth, decay]
296
296
return self.execute_command(TOPK_RESERVE, *params)
297
297
298
298
def add(self, key, *items):
299
299
"""
300
300
Add one `item` or more to a Top-K Filter `key`.
301
- For more information see `TOPK.ADD <https://oss. redis.com/redisbloom/master/TopK_Commands/#topkadd >`_.
301
+ For more information see `TOPK.ADD <https://redis.io/commands/topk.add >`_.
302
302
""" # noqa
303
303
params = [key]
304
304
params += items
@@ -308,7 +308,7 @@ def incrby(self, key, items, increments):
308
308
"""
309
309
Add/increase `items` to a Top-K Sketch `key` by ''increments''.
310
310
Both `items` and `increments` are lists.
311
- For more information see `TOPK.INCRBY <https://oss. redis.com/redisbloom/master/TopK_Commands/#topkincrby >`_.
311
+ For more information see `TOPK.INCRBY <https://redis.io/commands/topk.incrby >`_.
312
312
313
313
Example:
314
314
@@ -321,7 +321,7 @@ def incrby(self, key, items, increments):
321
321
def query(self, key, *items):
322
322
"""
323
323
Check whether one `item` or more is a Top-K item at `key`.
324
- For more information see `TOPK.QUERY <https://oss. redis.com/redisbloom/master/TopK_Commands/#topkquery >`_.
324
+ For more information see `TOPK.QUERY <https://redis.io/commands/topk.query >`_.
325
325
""" # noqa
326
326
params = [key]
327
327
params += items
@@ -330,7 +330,7 @@ def query(self, key, *items):
330
330
def count(self, key, *items):
331
331
"""
332
332
Return count for one `item` or more from `key`.
333
- For more information see `TOPK.COUNT <https://oss. redis.com/redisbloom/master/TopK_Commands/#topkcount >`_.
333
+ For more information see `TOPK.COUNT <https://redis.io/commands/topk.count >`_.
334
334
""" # noqa
335
335
params = [key]
336
336
params += items
@@ -341,7 +341,7 @@ def list(self, key, withcount=False):
341
341
Return full list of items in Top-K list of `key`.
342
342
If `withcount` set to True, return full list of items
343
343
with probabilistic count in Top-K list of `key`.
344
- For more information see `TOPK.LIST <https://oss. redis.com/redisbloom/master/TopK_Commands/#topklist >`_.
344
+ For more information see `TOPK.LIST <https://redis.io/commands/topk.list >`_.
345
345
""" # noqa
346
346
params = [key]
347
347
if withcount:
@@ -351,7 +351,7 @@ def list(self, key, withcount=False):
351
351
def info(self, key):
352
352
"""
353
353
Return k, width, depth and decay values of `key`.
354
- For more information see `TOPK.INFO <https://oss. redis.com/redisbloom/master/TopK_Commands/#topkinfo >`_.
354
+ For more information see `TOPK.INFO <https://redis.io/commands/topk.info >`_.
355
355
""" # noqa
356
356
return self.execute_command(TOPK_INFO, key)
357
357
@@ -360,23 +360,23 @@ class TDigestCommands:
360
360
def create(self, key, compression):
361
361
"""
362
362
Allocate the memory and initialize the t-digest.
363
- For more information see `TDIGEST.CREATE <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestcreate >`_.
363
+ For more information see `TDIGEST.CREATE <https://redis.io/commands/tdigest.create >`_.
364
364
""" # noqa
365
365
params = [key, compression]
366
366
return self.execute_command(TDIGEST_CREATE, *params)
367
367
368
368
def reset(self, key):
369
369
"""
370
370
Reset the sketch `key` to zero - empty out the sketch and re-initialize it.
371
- For more information see `TDIGEST.RESET <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestreset >`_.
371
+ For more information see `TDIGEST.RESET <https://redis.io/commands/tdigest.reset >`_.
372
372
""" # noqa
373
373
return self.execute_command(TDIGEST_RESET, key)
374
374
375
375
def add(self, key, values, weights):
376
376
"""
377
377
Add one or more samples (value with weight) to a sketch `key`.
378
378
Both `values` and `weights` are lists.
379
- For more information see `TDIGEST.ADD <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestadd >`_.
379
+ For more information see `TDIGEST.ADD <https://redis.io/commands/tdigest.add >`_.
380
380
381
381
Example:
382
382
@@ -389,38 +389,38 @@ def add(self, key, values, weights):
389
389
def merge(self, toKey, fromKey):
390
390
"""
391
391
Merge all of the values from 'fromKey' to 'toKey' sketch.
392
- For more information see `TDIGEST.MERGE <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestmerge >`_.
392
+ For more information see `TDIGEST.MERGE <https://redis.io/commands/tdigest.merge >`_.
393
393
""" # noqa
394
394
params = [toKey, fromKey]
395
395
return self.execute_command(TDIGEST_MERGE, *params)
396
396
397
397
def min(self, key):
398
398
"""
399
399
Return minimum value from the sketch `key`. Will return DBL_MAX if the sketch is empty.
400
- For more information see `TDIGEST.MIN <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestmin >`_.
400
+ For more information see `TDIGEST.MIN <https://redis.io/commands/tdigest.min >`_.
401
401
""" # noqa
402
402
return self.execute_command(TDIGEST_MIN, key)
403
403
404
404
def max(self, key):
405
405
"""
406
406
Return maximum value from the sketch `key`. Will return DBL_MIN if the sketch is empty.
407
- For more information see `TDIGEST.MAX <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestmax >`_.
407
+ For more information see `TDIGEST.MAX <https://redis.io/commands/tdigest.max >`_.
408
408
""" # noqa
409
409
return self.execute_command(TDIGEST_MAX, key)
410
410
411
411
def quantile(self, key, quantile):
412
412
"""
413
413
Return double value estimate of the cutoff such that a specified fraction of the data
414
414
added to this TDigest would be less than or equal to the cutoff.
415
- For more information see `TDIGEST.QUANTILE <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestquantile >`_.
415
+ For more information see `TDIGEST.QUANTILE <https://redis.io/commands/tdigest.quantile >`_.
416
416
""" # noqa
417
417
params = [key, quantile]
418
418
return self.execute_command(TDIGEST_QUANTILE, *params)
419
419
420
420
def cdf(self, key, value):
421
421
"""
422
422
Return double fraction of all points added which are <= value.
423
- For more information see `TDIGEST.CDF <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestcdf >`_.
423
+ For more information see `TDIGEST.CDF <https://redis.io/commands/tdigest.cdf >`_.
424
424
""" # noqa
425
425
params = [key, value]
426
426
return self.execute_command(TDIGEST_CDF, *params)
@@ -429,7 +429,7 @@ def info(self, key):
429
429
"""
430
430
Return Compression, Capacity, Merged Nodes, Unmerged Nodes, Merged Weight, Unmerged Weight
431
431
and Total Compressions.
432
- For more information see `TDIGEST.INFO <https://oss. redis.com/redisbloom/master/TDigest_Commands/#tdigestinfo >`_.
432
+ For more information see `TDIGEST.INFO <https://redis.io/commands/tdigest.info >`_.
433
433
""" # noqa
434
434
return self.execute_command(TDIGEST_INFO, key)
435
435
@@ -441,15 +441,15 @@ class CMSCommands:
441
441
def initbydim(self, key, width, depth):
442
442
"""
443
443
Initialize a Count-Min Sketch `key` to dimensions (`width`, `depth`) specified by user.
444
- For more information see `CMS.INITBYDIM <https://oss. redis.com/redisbloom/master/CountMinSketch_Commands/#cmsinitbydim >`_.
444
+ For more information see `CMS.INITBYDIM <https://redis.io/commands/cms.initbydim >`_.
445
445
""" # noqa
446
446
params = [key, width, depth]
447
447
return self.execute_command(CMS_INITBYDIM, *params)
448
448
449
449
def initbyprob(self, key, error, probability):
450
450
"""
451
451
Initialize a Count-Min Sketch `key` to characteristics (`error`, `probability`) specified by user.
452
- For more information see `CMS.INITBYPROB <https://oss. redis.com/redisbloom/master/CountMinSketch_Commands/#cmsinitbyprob >`_.
452
+ For more information see `CMS.INITBYPROB <https://redis.io/commands/cms.initbyprob >`_.
453
453
""" # noqa
454
454
params = [key, error, probability]
455
455
return self.execute_command(CMS_INITBYPROB, *params)
@@ -458,7 +458,7 @@ def incrby(self, key, items, increments):
458
458
"""
459
459
Add/increase `items` to a Count-Min Sketch `key` by ''increments''.
460
460
Both `items` and `increments` are lists.
461
- For more information see `CMS.INCRBY <https://oss. redis.com/redisbloom/master/CountMinSketch_Commands/#cmsincrby >`_.
461
+ For more information see `CMS.INCRBY <https://redis.io/commands/cms.incrby >`_.
462
462
463
463
Example:
464
464
@@ -471,7 +471,7 @@ def incrby(self, key, items, increments):
471
471
def query(self, key, *items):
472
472
"""
473
473
Return count for an `item` from `key`. Multiple items can be queried with one call.
474
- For more information see `CMS.QUERY <https://oss. redis.com/redisbloom/master/CountMinSketch_Commands/#cmsquery >`_.
474
+ For more information see `CMS.QUERY <https://redis.io/commands/cms.query >`_.
475
475
""" # noqa
476
476
params = [key]
477
477
params += items
@@ -483,7 +483,7 @@ def merge(self, destKey, numKeys, srcKeys, weights=[]):
483
483
All sketches must have identical width and depth.
484
484
`Weights` can be used to multiply certain sketches. Default weight is 1.
485
485
Both `srcKeys` and `weights` are lists.
486
- For more information see `CMS.MERGE <https://oss. redis.com/redisbloom/master/CountMinSketch_Commands/#cmsmerge >`_.
486
+ For more information see `CMS.MERGE <https://redis.io/commands/cms.merge >`_.
487
487
""" # noqa
488
488
params = [destKey, numKeys]
489
489
params += srcKeys
@@ -493,6 +493,6 @@ def merge(self, destKey, numKeys, srcKeys, weights=[]):
493
493
def info(self, key):
494
494
"""
495
495
Return width, depth and total count of the sketch.
496
- For more information see `CMS.INFO <https://oss. redis.com/redisbloom/master/CountMinSketch_Commands/#cmsinfo >`_.
496
+ For more information see `CMS.INFO <https://redis.io/commands/cms.info >`_.
497
497
""" # noqa
498
498
return self.execute_command(CMS_INFO, key)
0 commit comments