From f53b7146b681ba47c5762a3996d4e2cefe7e06ec Mon Sep 17 00:00:00 2001 From: Panson Date: Fri, 3 Nov 2023 18:52:56 +0800 Subject: [PATCH] fix issues 2591 https://github.com/redis/redis-doc/issues/2591 --- commands/decrby.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/commands/decrby.md b/commands/decrby.md index b2e823b7e6..3fe0472b94 100644 --- a/commands/decrby.md +++ b/commands/decrby.md @@ -1,8 +1,7 @@ -Decrements the number stored at `key` by `decrement`. -If the key does not exist, it is set to `0` before performing the operation. -An error is returned if the key contains a value of the wrong type or contains a -string that can not be represented as integer. -This operation is limited to 64 bit signed integers. +The `DECRBY` command reduces the value stored at the specified `key` by the specified `decrement`. +If the key does not exist, it is initialized with a value of `0` before performing the operation. +If the key's value is not of the correct type or cannot be represented as an integer, an error is returned. +This operation is limited to **64-bit** signed integers. See `INCR` for extra information on increment/decrement operations.