Number functions

numSet

The numSet function stores a numeric value (integer or floating-point) in the key-value database. This command is designed to handle numerical data efficiently.

-> Read More


numGet

The numGet function retrieves a numerical value (integer or float) from the database associated with the given key. It only supports keys whose values are of type Number . If the key does not exist or the value is not a number, an appropriate error is returned.

-> Read More


numIncr

The numIncr function increments a numeric value associated with a key. If the key does not exist, it sets the key to the given value (or to 1 by default). This command supports both integer and floating-point numbers.

-> Read More


numDecr

The numDecr function decrements the numeric value stored at the specified key by a given amount. If the key does not exist, it initializes the key with the decremented value (i.e., 0 - value ). If no amount is provided, it decrements by 1 by default.

-> Read More