This commit is contained in:
@@ -5,7 +5,7 @@ from .commands import * # noqa
|
||||
from .info import BFInfo, CFInfo, CMSInfo, TDigestInfo, TopKInfo
|
||||
|
||||
|
||||
class AbstractBloom(object):
|
||||
class AbstractBloom:
|
||||
"""
|
||||
The client allows to interact with RedisBloom and use all of
|
||||
it's functionality.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from redis.client import NEVER_DECODE
|
||||
from redis.exceptions import ModuleError
|
||||
from redis.utils import HIREDIS_AVAILABLE, deprecated_function
|
||||
from redis.utils import deprecated_function
|
||||
|
||||
BF_RESERVE = "BF.RESERVE"
|
||||
BF_ADD = "BF.ADD"
|
||||
@@ -139,9 +138,6 @@ class BFCommands:
|
||||
This command will return successive (iter, data) pairs until (0, NULL) to indicate completion.
|
||||
For more information see `BF.SCANDUMP <https://redis.io/commands/bf.scandump>`_.
|
||||
""" # noqa
|
||||
if HIREDIS_AVAILABLE:
|
||||
raise ModuleError("This command cannot be used when hiredis is available.")
|
||||
|
||||
params = [key, iter]
|
||||
options = {}
|
||||
options[NEVER_DECODE] = []
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from ..helpers import nativestr
|
||||
|
||||
|
||||
class BFInfo(object):
|
||||
class BFInfo:
|
||||
capacity = None
|
||||
size = None
|
||||
filterNum = None
|
||||
@@ -26,7 +26,7 @@ class BFInfo(object):
|
||||
return getattr(self, item)
|
||||
|
||||
|
||||
class CFInfo(object):
|
||||
class CFInfo:
|
||||
size = None
|
||||
bucketNum = None
|
||||
filterNum = None
|
||||
@@ -57,7 +57,7 @@ class CFInfo(object):
|
||||
return getattr(self, item)
|
||||
|
||||
|
||||
class CMSInfo(object):
|
||||
class CMSInfo:
|
||||
width = None
|
||||
depth = None
|
||||
count = None
|
||||
@@ -72,7 +72,7 @@ class CMSInfo(object):
|
||||
return getattr(self, item)
|
||||
|
||||
|
||||
class TopKInfo(object):
|
||||
class TopKInfo:
|
||||
k = None
|
||||
width = None
|
||||
depth = None
|
||||
@@ -89,7 +89,7 @@ class TopKInfo(object):
|
||||
return getattr(self, item)
|
||||
|
||||
|
||||
class TDigestInfo(object):
|
||||
class TDigestInfo:
|
||||
compression = None
|
||||
capacity = None
|
||||
merged_nodes = None
|
||||
|
||||
Reference in New Issue
Block a user