mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #39598 from cloudflare/redis-hash-versionadded
Specify versionadded for redismod hash functions
This commit is contained in:
commit
cc0c930392
@ -248,6 +248,8 @@ def hdel(key, *fields, **options):
|
||||
'''
|
||||
Delete one of more hash fields.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -266,6 +268,8 @@ def hexists(key, field, host=None, port=None, db=None, password=None):
|
||||
'''
|
||||
Determine if a hash fields exists.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -308,6 +312,8 @@ def hincrby(key, field, increment=1, host=None, port=None, db=None, password=Non
|
||||
'''
|
||||
Increment the integer value of a hash field by the given number.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -322,6 +328,8 @@ def hincrbyfloat(key, field, increment=1.0, host=None, port=None, db=None, passw
|
||||
'''
|
||||
Increment the float value of a hash field by the given number.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -336,6 +344,8 @@ def hlen(key, host=None, port=None, db=None, password=None):
|
||||
'''
|
||||
Returns number of fields of a hash.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -350,6 +360,8 @@ def hmget(key, *fields, **options):
|
||||
'''
|
||||
Returns the values of all the given hash fields.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -368,6 +380,8 @@ def hmset(key, **fieldsvals):
|
||||
'''
|
||||
Sets multiple hash fields to multiple values.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -386,6 +400,8 @@ def hset(key, field, value, host=None, port=None, db=None, password=None):
|
||||
'''
|
||||
Set the value of a hash field.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -400,6 +416,8 @@ def hsetnx(key, field, value, host=None, port=None, db=None, password=None):
|
||||
'''
|
||||
Set the value of a hash field only if the field does not exist.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -414,6 +432,8 @@ def hvals(key, host=None, port=None, db=None, password=None):
|
||||
'''
|
||||
Return all the values in a hash.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
@ -428,6 +448,8 @@ def hscan(key, cursor=0, match=None, count=None, host=None, port=None, db=None,
|
||||
'''
|
||||
Incrementally iterate hash fields and associated values.
|
||||
|
||||
.. versionadded:: Nitrogen
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
Loading…
Reference in New Issue
Block a user