From 116fa0ae9bccd37de690ea57dcaf0e05cbb2bc97 Mon Sep 17 00:00:00 2001 From: Junaid <139873457+fettuccinae@users.noreply.github.com> Date: Tue, 1 Jul 2025 20:54:19 +0530 Subject: [PATCH] Fix docstring for hset --- brainzutils/cache.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/brainzutils/cache.py b/brainzutils/cache.py index 5ec0a90..6ab6302 100644 --- a/brainzutils/cache.py +++ b/brainzutils/cache.py @@ -277,9 +277,7 @@ def hkeys(name, namespace=None): @init_required def hset(name, key, value, namespace=None): - """Delete the specified keys from a hash using HDEL. - Note that the ``keys`` argument must be a list. This differs from the underlying redis - library's version of this command, which takes varargs. + """Set the value of a key in a hash using HSET. Args: name: Name of the hash @@ -288,7 +286,7 @@ def hset(name, key, value, namespace=None): namespace: Namespace for the name Returns: - the number of keys deleted from the hash + number of fields that were added to the hash. """ return _r.hset(_prep_keys_list([name], namespace)[0], key, value)