We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e43de commit 26b75a1Copy full SHA for 26b75a1
django_valkey/base.py
@@ -158,6 +158,9 @@ def client(self) -> Client:
158
159
@decorate_all_methods(omit_exception)
160
class BackendCommands:
161
+ def __contains__(self, item):
162
+ return self.has_key(item)
163
+
164
def set(self: BaseValkeyCache, *args, **kwargs) -> bool:
165
return self.client.set(*args, **kwargs)
166
django_valkey/cache.py
@@ -6,6 +6,3 @@
6
7
class ValkeyCache(BaseValkeyCache[DefaultClient, Valkey], BackendCommands):
8
DEFAULT_CLIENT_CLASS = "django_valkey.client.DefaultClient"
9
-
10
- def __contains__(self, item):
11
- return self.has_key(item)
0 commit comments