Skip to content

Commit 21c06b3

Browse files
fettuccinaeamCap1712
authored andcommitted
Fix docstring for hset
1 parent 1f1327d commit 21c06b3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

brainzutils/cache.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ def hkeys(name, namespace=None):
277277

278278
@init_required
279279
def hset(name, key, value, namespace=None):
280-
"""Delete the specified keys from a hash using HDEL.
281-
Note that the ``keys`` argument must be a list. This differs from the underlying redis
282-
library's version of this command, which takes varargs.
280+
"""Set the value of a key in a hash using HSET.
283281
284282
Args:
285283
name: Name of the hash
@@ -288,7 +286,7 @@ def hset(name, key, value, namespace=None):
288286
namespace: Namespace for the name
289287
290288
Returns:
291-
the number of keys deleted from the hash
289+
number of fields that were added to the hash.
292290
"""
293291
return _r.hset(_prep_keys_list([name], namespace)[0], key, value)
294292

0 commit comments

Comments
 (0)