main commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-16 16:30:25 +09:00
parent 91c7e04474
commit 537e7b363f
1146 changed files with 45926 additions and 77196 deletions

View File

@@ -5,7 +5,7 @@ from .commands import * # noqa
from .info import BFInfo, CFInfo, CMSInfo, TDigestInfo, TopKInfo
class AbstractBloom:
class AbstractBloom(object):
"""
The client allows to interact with RedisBloom and use all of
it's functionality.

View File

@@ -1,5 +1,6 @@
from redis.client import NEVER_DECODE
from redis.utils import deprecated_function
from redis.exceptions import ModuleError
from redis.utils import HIREDIS_AVAILABLE, deprecated_function
BF_RESERVE = "BF.RESERVE"
BF_ADD = "BF.ADD"
@@ -138,6 +139,9 @@ 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] = []

View File

@@ -1,7 +1,7 @@
from ..helpers import nativestr
class BFInfo:
class BFInfo(object):
capacity = None
size = None
filterNum = None
@@ -26,7 +26,7 @@ class BFInfo:
return getattr(self, item)
class CFInfo:
class CFInfo(object):
size = None
bucketNum = None
filterNum = None
@@ -57,7 +57,7 @@ class CFInfo:
return getattr(self, item)
class CMSInfo:
class CMSInfo(object):
width = None
depth = None
count = None
@@ -72,7 +72,7 @@ class CMSInfo:
return getattr(self, item)
class TopKInfo:
class TopKInfo(object):
k = None
width = None
depth = None
@@ -89,7 +89,7 @@ class TopKInfo:
return getattr(self, item)
class TDigestInfo:
class TDigestInfo(object):
compression = None
capacity = None
merged_nodes = None